1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 02:17:05 +00:00

Update to version 8.5.4 | Read HISTORY.md

https://github.com/kataras/iris/blob/master/HISTORY.md#th-26-october-2017--v854

Former-commit-id: 43a3b46b99085e0e0ed47b281e2f61dbb1ac6eb6
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-10-26 02:48:16 +03:00
parent 3c5f729f40
commit 4a63488948
18 changed files with 246 additions and 630 deletions

View File

@@ -103,6 +103,7 @@ func (b *basicAuthMiddleware) Serve(ctx context.Context) {
auth, found := b.findAuth(ctx.GetHeader("Authorization"))
if !found {
b.askForCredentials(ctx)
ctx.StopExecution()
return
// don't continue to the next handler
}
@@ -115,6 +116,7 @@ func (b *basicAuthMiddleware) Serve(ctx context.Context) {
if time.Now().After(auth.expires) {
b.askForCredentials(ctx) // ask for authentication again
ctx.StopExecution()
return
}
}