0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-02 16:07:15 +01:00
gitea/modules/context
Ghanem 185646723c
Fix redirect when using lowercase reponame (#18775)
* Previously,  `GET {username}/{reponame}/raw///file-path` (the middle two slashes are blank to get the default branch) when the repo name has uppercase letters, e.g., https://try.gitea.io/AbdulrhmnGhanem/CH330_Hardware, using a lowercase version of the name redirected to the correct URL
* In other words both
   * `GET https://try.gitea.io/AbdulrhmnGhanem/CH330_Hardware/raw///images/back.png`
   * `GET https://try.gitea.io/AbdulrhmnGhanem/ch330_hardware/raw///images/back.png`
were redirecting to ` GET https://try.gitea.io/AbdulrhmnGhanem/CH330_Hardware/raw/branch/master/images/back.png`
This isn't the case after  #17551. Specifically because of this [line](cbd5eecd14/modules/context/repo.go (L860)).
2022-02-18 00:11:27 +08:00
..
access_log.go
api_org.go
api_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
api.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
auth.go
captcha.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
context.go Display template path of current page in dev mode (#18717) 2022-02-12 01:08:22 +08:00
csrf.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
form.go Add config options to hide issue events (#17414) 2022-01-21 18:59:26 +01:00
org.go
pagination.go
permission.go
private.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
repo.go Fix redirect when using lowercase reponame (#18775) 2022-02-18 00:11:27 +08:00
response.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
xsrf_test.go
xsrf.go