mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
#1681 some fixes for builtin SSH server on Windows
This commit is contained in:
parent
ec8d41765d
commit
0128036514
6 changed files with 14 additions and 8 deletions
|
@ -84,13 +84,13 @@ func HTTP(ctx *middleware.Context) {
|
|||
|
||||
// check access
|
||||
if askAuth {
|
||||
baHead := ctx.Req.Header.Get("Authorization")
|
||||
if baHead == "" {
|
||||
authHead := ctx.Req.Header.Get("Authorization")
|
||||
if len(authHead) == 0 {
|
||||
authRequired(ctx)
|
||||
return
|
||||
}
|
||||
|
||||
auths := strings.Fields(baHead)
|
||||
auths := strings.Fields(authHead)
|
||||
// currently check basic auth
|
||||
// TODO: support digit auth
|
||||
// FIXME: middlewares/context.go did basic auth check already,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue