##// END OF EJS Templates
fix(git-lfs): don't specify scheme if it's http so development urls works properly
super-admin -
r1193:630dbe0c default
parent child Browse files
Show More
@@ -114,6 +114,11 b' def lfs_objects_batch(request):'
114 HTTPBadRequest, 'unsupported data in objects')
114 HTTPBadRequest, 'unsupported data in objects')
115
115
116 obj_data = {'oid': oid}
116 obj_data = {'oid': oid}
117 if http_scheme == 'http':
118 # Note(marcink): when using http, we might have a custom port
119 # so we skip setting it to http, url dispatch then wont generate a port in URL
120 # for development we need this
121 http_scheme = None
117
122
118 obj_href = request.route_url('lfs_objects_oid', repo=repo, oid=oid,
123 obj_href = request.route_url('lfs_objects_oid', repo=repo, oid=oid,
119 _scheme=http_scheme)
124 _scheme=http_scheme)
General Comments 0
You need to be logged in to leave comments. Login now