diff --git a/vcsserver/git_lfs/app.py b/vcsserver/git_lfs/app.py --- a/vcsserver/git_lfs/app.py +++ b/vcsserver/git_lfs/app.py @@ -114,6 +114,11 @@ def lfs_objects_batch(request): HTTPBadRequest, 'unsupported data in objects') obj_data = {'oid': oid} + if http_scheme == 'http': + # Note(marcink): when using http, we might have a custom port + # so we skip setting it to http, url dispatch then wont generate a port in URL + # for development we need this + http_scheme = None obj_href = request.route_url('lfs_objects_oid', repo=repo, oid=oid, _scheme=http_scheme)