Samesite - proxy that can cache partial transfers

Diff
anonymous

Diff

Differences From Artifact [e5ce2a7c0d]:

To Artifact [56275b3bbf]:


333
334
335
336
337
338
339


340

341
342
343
344
345
346
347
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350







+
+

+








				index[my_path_b] = new_record
				index.sync()

			except urllib.error.HTTPError as error:
				# in case of error we don't need to do anything actually,
				# if file download stalls or fails the file would not be moved to it's location
				self.send_response(error.code)
				self.end_headers()
				print(error, repr(my_headers))
				return

		print(index[my_path_b])

		if not os.access(file_name, os.R_OK) and os.access(temp_name, os.R_OK) and '_parts' in index[my_path_b] and index[my_path_b]['_parts'] == spacemap.SpaceMap():
			# just moving
			# drop old dirs XXX
			print('Moving temporary file to new destination.')