mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Merge pull request 'Prevent some browsers from caching servers basic auth request' (#159) from louis77/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/159
This commit is contained in:
commit
b150bfe5ca
1
httpd.c
1
httpd.c
@ -388,6 +388,7 @@ void httpd_connection(FILE *f)
|
|||||||
body, xs_dict_get(srv_config, "host"));
|
body, xs_dict_get(srv_config, "host"));
|
||||||
|
|
||||||
headers = xs_dict_append(headers, "WWW-Authenticate", www_auth);
|
headers = xs_dict_append(headers, "WWW-Authenticate", www_auth);
|
||||||
|
headers = xs_dict_append(headers, "Cache-Control", "no-cache, must-revalidate, max-age=0");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ctype == NULL)
|
if (ctype == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user