##// END OF EJS Templates
git-lfs: report chunked encoding support properly to the client....
marcink -
r199:39019410 default
parent child Browse files
Show More
@@ -88,9 +88,10 b' class OidHandler(object):'
88 log.debug('LFS: skipping further action as oid is existing')
88 log.debug('LFS: skipping further action as oid is existing')
89 return response, has_errors
89 return response, has_errors
90
90
91 chunked = ("Transfer-Encoding", "chunked")
91 upload_action = OrderedDict(
92 upload_action = OrderedDict(
92 href=self.obj_href,
93 href=self.obj_href,
93 header=OrderedDict([("Authorization", self.get_auth())])
94 header=OrderedDict([("Authorization", self.get_auth()), chunked])
94 )
95 )
95 if not has_errors:
96 if not has_errors:
96 response = OrderedDict(upload=upload_action)
97 response = OrderedDict(upload=upload_action)
@@ -142,7 +142,8 b' class TestLFSApplication(object):'
142 {u'authenticated': True,
142 {u'authenticated': True,
143 u'actions': {
143 u'actions': {
144 u'upload': {
144 u'upload': {
145 u'header': {u'Authorization': u'Basic XXXXX'},
145 u'header': {u'Authorization': u'Basic XXXXX',
146 u'Transfer-Encoding': u'chunked'},
146 u'href': u'http://localhost/repo/info/lfs/objects/123'},
147 u'href': u'http://localhost/repo/info/lfs/objects/123'},
147 u'verify': {
148 u'verify': {
148 u'header': {u'Authorization': u'Basic XXXXX'},
149 u'header': {u'Authorization': u'Basic XXXXX'},
General Comments 0
You need to be logged in to leave comments. Login now