~edwargix/git.sr.ht

c4eb0b80fde46206fd9cd3be13eb36df7840d222 — Drew DeVault 7 years ago dca420d
Fix typo in repo.py's authorize function
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/blueprints/repo.py
M gitsrht/blueprints/repo.py => gitsrht/blueprints/repo.py +1 -1
@@ 28,7 28,7 @@ repo = Blueprint('repo', __name__)
def authorize_http_access():
    original_uri = request.headers.get("X-Original-URI")
    original_uri = original_uri.split("/")
    owner, repo = original_url[1], original_uri[2]
    owner, repo = original_uri[1], original_uri[2]
    owner, repo = get_repo(owner, repo)
    if not repo:
        return "authorized", 200