# HG changeset patch # User Matt Harbison # Date 2018-02-25 00:56:59 # 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 --git a/hgext/lfs/blobstore.py b/hgext/lfs/blobstore.py --- a/hgext/lfs/blobstore.py +++ b/hgext/lfs/blobstore.py @@ -332,6 +332,7 @@ class _gitlfsremote(object): 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)