فهرست منبع

Fixed missing end quote in the WWW-Authenticate header.

default 3 سال پیش
والد
کامیت
3da32bd327
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      httpd.c

+ 1 - 1
httpd.c

@@ -251,7 +251,7 @@ void httpd_connection(FILE *f)
         headers = xs_dict_append(headers, "location", body);
         headers = xs_dict_append(headers, "location", body);
 
 
     if (status == 401) {
     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);
         headers = xs_dict_append(headers, "WWW-Authenticate", www_auth);
     }
     }