gitea/modules
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
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
context Fix redirect when using lowercase reponame (#18775) 2022-02-18 00:11:27 +08:00
convert
csv
doctor Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
emoji
eventsource
generate
git Prevent dangling GetAttribute calls (#18754) 2022-02-14 18:03:56 +01:00
gitgraph Change git.cmd to RunWithContext (#18693) 2022-02-11 13:47:22 +01:00
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
json
lfs
log
markup Prevent NPE on partial match of compare URL and allow short SHA1 compare URLs (#18472) 2022-01-31 01:48:47 +02:00
metrics
migration add test coverage for original author conversion during migrations (#18506) 2022-02-01 13:20:28 -05:00
nosql
notification Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707) 2022-02-12 07:17:34 +00:00
options
password
pprof
private
process
proxy
public
queue Add number in queue status to monitor page (#18712) 2022-02-12 13:31:26 +08:00
recaptcha
references
repository Delete old git.NewCommand() and use it as git.NewCommandContext() (#18552) 2022-02-06 20:01:47 +01:00
secret Use CryptoRandomBytes instead of CryptoRandomString (#18439) 2022-02-04 18:03:15 +01:00
session
setting Update SSH Server crypto settings (#18697) 2022-02-10 17:04:16 +01:00
ssh
storage
structs Add apply-patch, basic revert and cherry-pick functionality (#17902) 2022-02-09 20:28:55 +00:00
svg
sync
templates Fix display time of milestones (#18753) 2022-02-16 00:50:10 +08:00
test
timeutil
translation Refactor i18n, use Locale to provide i18n/translation related functions (#18648) 2022-02-08 11:02:30 +08:00
typesniffer
updatechecker
upload
uri
user
util Fix display time of milestones (#18753) 2022-02-16 00:50:10 +08:00
validation
web