##// END OF EJS Templates
lfs: explicitly add the Content-Length header when uploading blobs, for py3...
Matt Harbison -
r41485:1bc01490 default
parent child Browse files
Show More
@@ -352,6 +352,7 b' test-lfconvert.t'
352 test-lfs-bundle.t
352 test-lfs-bundle.t
353 test-lfs-largefiles.t
353 test-lfs-largefiles.t
354 test-lfs-pointer.py
354 test-lfs-pointer.py
355 test-lfs-test-server.t
355 test-lfs.t
356 test-lfs.t
356 test-linelog.py
357 test-linelog.py
357 test-linerange.py
358 test-linerange.py
@@ -428,6 +428,7 b' class _gitlfsremote(object):'
428 request.data = filewithprogress(localstore.open(oid), None)
428 request.data = filewithprogress(localstore.open(oid), None)
429 request.get_method = lambda: r'PUT'
429 request.get_method = lambda: r'PUT'
430 request.add_header(r'Content-Type', r'application/octet-stream')
430 request.add_header(r'Content-Type', r'application/octet-stream')
431 request.add_header(r'Content-Length', len(request.data))
431
432
432 for k, v in headers:
433 for k, v in headers:
433 request.add_header(pycompat.strurl(k), pycompat.strurl(v))
434 request.add_header(pycompat.strurl(k), pycompat.strurl(v))
General Comments 0
You need to be logged in to leave comments. Login now