Fix fasttest

This commit is contained in:
Robert Schulze 2023-04-12 08:31:13 +00:00
parent 3c6aa46d4a
commit 53d0f76762
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -442,7 +442,10 @@ bool HTTPHandler::authenticateUser(
if (!gss_acceptor_context)
throw Exception(ErrorCodes::AUTHENTICATION_FAILED, "Invalid authentication: unexpected 'Negotiate' HTTP Authorization scheme expected");
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunreachable-code"
const auto spnego_response = base64Encode(gss_acceptor_context->processToken(base64Decode(spnego_challenge), log));
#pragma clang diagnostic pop
if (!spnego_response.empty())
response.set("WWW-Authenticate", "Negotiate " + spnego_response);