commit 3da32bd

default  ·  2023-06-24 06:07:46 +0000 UTC
parent 5db1073
Fixed missing end quote in the WWW-Authenticate header.
1 files changed,  +1, -1
+1, -1
1@@ -251,7 +251,7 @@ void httpd_connection(FILE *f)
2         headers = xs_dict_append(headers, "location", body);
3 
4     if (status == 401) {
5-        xs *www_auth = xs_fmt("Basic realm=\"%s snac login", xs_dict_get(srv_config, "host"));
6+        xs *www_auth = xs_fmt("Basic realm=\"%s snac login\"", xs_dict_get(srv_config, "host"));
7         headers = xs_dict_append(headers, "WWW-Authenticate", www_auth);
8     }
9