Closed
Description
- 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>.