summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 81e520f..104edcf 100644
--- a/httpd.c
+++ b/httpd.c
@@ -406,7 +406,7 @@ void httpd_connection(FILE *f)
406 if (status == HTTP_STATUS_SEE_OTHER) 406 if (status == HTTP_STATUS_SEE_OTHER)
407 headers = xs_dict_append(headers, "location", body); 407 headers = xs_dict_append(headers, "location", body);
408 408
409 if (status == HTTP_STATUS_UNAUTHORIZED) { 409 if (status == HTTP_STATUS_UNAUTHORIZED && body) {
410 xs *www_auth = xs_fmt("Basic realm=\"@%s@%s snac login\"", 410 xs *www_auth = xs_fmt("Basic realm=\"@%s@%s snac login\"",
411 body, xs_dict_get(srv_config, "host")); 411 body, xs_dict_get(srv_config, "host"));
412 412