bench-forgejo/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.go
api_org.go
api_test.go
auth.go
captcha.go
context.go Display template path of current page in dev mode (#18717) 2022-02-12 01:08:22 +08:00
csrf.go
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
repo.go Fix redirect when using lowercase reponame (#18775) 2022-02-18 00:11:27 +08:00
response.go
xsrf.go
xsrf_test.go