Skip to content

Extra slash in the redirection when redirecting to HTTPS when using Let's Encrypt #5536

Closed
@gregkare

Description

@gregkare
  • Gitea version (or commit ref): master
  • Git version: not relevant
  • Operating system: macOS, Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When Let's Encrypt is enabled, the redirections from HTTP to HTTPS add an extra slash at the end of the URL. I have identified the problem and am going to push a PR.

$ curl 0.0.0.0:3001/
<a href="https://gitea.example.com:3000//">Found</a>.

$ curl 0.0.0.0:3001
<a href="https://gitea.example.com:3000//">Found</a>.

$ curl 0.0.0.0:3001/test
<a href="https://gitea.example.com:3000//test">Found</a>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions