]> source.dussan.org Git - gitea.git/commit
Fix LFS route mock, realm, middleware names (#32488)
authorwxiaoguang <wxiaoguang@gmail.com>
Wed, 13 Nov 2024 08:58:09 +0000 (16:58 +0800)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2024 08:58:09 +0000 (16:58 +0800)
commit0aedb03996d7bdce88b1f0086151f8778b10c1a4
treea6586b4efd51cb7c392fde331062005f9c3a9b86
parent840ad7eefe2b49ab453b9a89b153a264a8c9f8a2
Fix LFS route mock, realm, middleware names (#32488)

1. move "internal-lfs" route mock to "common-lfs"
2. fine tune tests
3. fix "realm" strings, according to RFC:
https://datatracker.ietf.org/doc/html/rfc2617:
    * realm       = "realm" "=" realm-value
    * realm-value = quoted-string
4. clarify some names of the middlewares, rename `ignXxx` to `optXxx` to
match `reqXxx`, and rename ambiguous `requireSignIn` to `reqGitSignIn`
go.mod
routers/common/lfs.go
routers/private/internal.go
routers/web/auth/oauth2_provider.go
routers/web/githttp.go
routers/web/web.go
services/context/base.go
services/context/context.go
services/lfs/locks.go
services/lfs/server.go
tests/integration/git_lfs_ssh_test.go