##// 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 352 test-lfs-bundle.t
353 353 test-lfs-largefiles.t
354 354 test-lfs-pointer.py
355 test-lfs-test-server.t
355 356 test-lfs.t
356 357 test-linelog.py
357 358 test-linerange.py
@@ -428,6 +428,7 b' class _gitlfsremote(object):'
428 428 request.data = filewithprogress(localstore.open(oid), None)
429 429 request.get_method = lambda: r'PUT'
430 430 request.add_header(r'Content-Type', r'application/octet-stream')
431 request.add_header(r'Content-Length', len(request.data))
431 432
432 433 for k, v in headers:
433 434 request.add_header(pycompat.strurl(k), pycompat.strurl(v))
General Comments 0
You need to be logged in to leave comments. Login now