From 6a4d3e0f173f09f1a00c4ddfa7a6e6472110b1f3 Mon Sep 17 00:00:00 2001 From: Marc Szymkowiak Date: Mon, 20 Feb 2023 19:47:47 +0100 Subject: [PATCH] try fix basic auth realm missing quote --- src/nhttpd/yhttpd_core/yhook.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_core/yhook.cpp b/src/nhttpd/yhttpd_core/yhook.cpp index 94338b758..964e9be33 100644 --- a/src/nhttpd/yhttpd_core/yhook.cpp +++ b/src/nhttpd/yhttpd_core/yhook.cpp @@ -280,7 +280,7 @@ std::string CyhookHandler::BuildHeader(bool cache) { switch (httpStatus) { case HTTP_UNAUTHORIZED: result += "WWW-Authenticate: Basic realm=\""; - result += AUTH_NAME_MSG "\r\n"; + result += AUTH_NAME_MSG "\"\r\n"; break; case HTTP_MOVED_TEMPORARILY: