changeset 37245:3e293808e835

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
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 24 Feb 2018 19:56:59 -0500
parents 67db84842356
children 3685a79ea51b
files hgext/lfs/blobstore.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)