From b243b1c88de69add473cd8d9eaef92ebaba86e9f Mon Sep 17 00:00:00 2001 From: Mike Nolan Date: Thu, 4 Dec 2025 14:29:04 -0600 Subject: [PATCH] Fix basic auth --- src/Http/BasicAuthServer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)