diff --git a/src/Http/BasicAuthServer.cpp b/src/Http/BasicAuthServer.cpp index 166f807..db9a60e 100644 --- a/src/Http/BasicAuthServer.cpp +++ b/src/Http/BasicAuthServer.cpp @@ -18,7 +18,8 @@ namespace Tesses::Framework::Http { if(!GetCreds(ctx,user,pass) || !this->authorization(user,pass)) { ctx.responseHeaders.SetValue("WWW-Authenticate",www_authenticate); ctx.statusCode = Unauthorized; - return false; + ctx.WithMimeType("text/html").SendText("

Unauthorized

"); + return true; } if(this->server)