# HG changeset patch # User RhodeCode Admin # Date 2024-01-05 15:37:02 # Node ID 630dbe0c213a78e72509e0ca5b150e2be99a8daa # Parent 0a7a851b56a2b5bd18839907cc59bdcea88436e3 fix(git-lfs): don't specify scheme if it's http so development urls works properly 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)