# HG changeset patch # User Matt Harbison # Date 1519520219 18000 # Node ID 3e293808e83557021a25fd8efbfcc66e094ae1b7 # Parent 67db84842356c545fe2571c27ca69369df04a4f4 lfs: add the 'Content-Type' header called out in the file transfer spec https://github.com/git-lfs/git-lfs/blob/master/docs/api/basic-transfers.md#uploads diff -r 67db84842356 -r 3e293808e835 hgext/lfs/blobstore.py --- a/hgext/lfs/blobstore.py Sun Feb 25 23:44:02 2018 -0500 +++ b/hgext/lfs/blobstore.py Sat Feb 24 19:56:59 2018 -0500 @@ -332,6 +332,7 @@ hint=_('run hg verify')) request.data = filewithprogress(localstore.open(oid), None) request.get_method = lambda: 'PUT' + request.add_header('Content-Type', 'application/octet-stream') for k, v in headers: request.add_header(k, v)