diff options
| author | 2024-04-14 11:05:10 +0000 | |
|---|---|---|
| committer | 2024-04-14 11:05:10 +0000 | |
| commit | b150bfe5caed8ce3a07059ef53fce0dfb1c8eda6 (patch) | |
| tree | b531d7a6fdb916c3a6c4daaf3f130f9b7273a903 | |
| parent | Fixed bug in form processing. (diff) | |
| parent | Prevent some browsers from caching servers basic auth request (diff) | |
| download | snac2-b150bfe5caed8ce3a07059ef53fce0dfb1c8eda6.tar.gz snac2-b150bfe5caed8ce3a07059ef53fce0dfb1c8eda6.tar.xz snac2-b150bfe5caed8ce3a07059ef53fce0dfb1c8eda6.zip | |
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
| -rw-r--r-- | httpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -388,6 +388,7 @@ void httpd_connection(FILE *f) | |||
| 388 | body, xs_dict_get(srv_config, "host")); | 388 | body, xs_dict_get(srv_config, "host")); |
| 389 | 389 | ||
| 390 | headers = xs_dict_append(headers, "WWW-Authenticate", www_auth); | 390 | headers = xs_dict_append(headers, "WWW-Authenticate", www_auth); |
| 391 | headers = xs_dict_append(headers, "Cache-Control", "no-cache, must-revalidate, max-age=0"); | ||
| 391 | } | 392 | } |
| 392 | 393 | ||
| 393 | if (ctype == NULL) | 394 | if (ctype == NULL) |