From 3da32bd327642659b6ea96c29a5a581bdfc52ff9 Mon Sep 17 00:00:00 2001 From: default Date: Sat, 24 Jun 2023 08:07:46 +0200 Subject: [PATCH] Fixed missing end quote in the WWW-Authenticate header. --- httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd.c b/httpd.c index fe885d7..5409b85 100644 --- a/httpd.c +++ b/httpd.c @@ -251,7 +251,7 @@ void httpd_connection(FILE *f) headers = xs_dict_append(headers, "location", body); if (status == 401) { - xs *www_auth = xs_fmt("Basic realm=\"%s snac login", xs_dict_get(srv_config, "host")); + xs *www_auth = xs_fmt("Basic realm=\"%s snac login\"", xs_dict_get(srv_config, "host")); headers = xs_dict_append(headers, "WWW-Authenticate", www_auth); }