Skip to content

Commit 1579ffb

Browse files
authored
Merge pull request #500 from bravechamp/patch-1
Fix API access
2 parents 61440c4 + 0bfa530 commit 1579ffb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

app.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,6 @@ func (h *Headscale) httpAuthenticationMiddleware(ctx *gin.Context) {
409409
return
410410
}
411411

412-
ctx.AbortWithStatus(http.StatusUnauthorized)
413-
414412
valid, err := h.ValidateAPIKey(strings.TrimPrefix(authHeader, AuthPrefix))
415413
if err != nil {
416414
log.Error().

0 commit comments

Comments
 (0)