Fixed wrong copy paste in Header
This commit is contained in:
parent
51b8c659f1
commit
116bef25a7
2
app.go
2
app.go
|
@ -337,7 +337,7 @@ func (h *Headscale) httpAuthenticationMiddleware(next http.Handler) http.Handler
|
||||||
Str("client_address", r.RemoteAddr).
|
Str("client_address", r.RemoteAddr).
|
||||||
Msg("HTTP authentication invoked")
|
Msg("HTTP authentication invoked")
|
||||||
|
|
||||||
authHeader := r.Header.Get("X-Session-Token")
|
authHeader := r.Header.Get("authorization")
|
||||||
|
|
||||||
if !strings.HasPrefix(authHeader, AuthPrefix) {
|
if !strings.HasPrefix(authHeader, AuthPrefix) {
|
||||||
log.Error().
|
log.Error().
|
||||||
|
|
Loading…
Reference in New Issue