Commit 647c29e0 authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Update: Changed set of default headers.

Two changes have been made. Both are HTTP/1.1 related changes
and are purly meant for HTTP/1.1 clients that do not correctly
support HTTP/1.0.

* Added 'Connection: Close'.
* Added 'no-store' to 'Cache-Control:'.
parent 3da438a8
......@@ -638,13 +638,13 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
config = config_get_config();
extra_headers = _build_headers(status, config, source);
ret = snprintf (out, len, "%sServer: %s\r\n%s%s%s%s%s%s%s",
ret = snprintf (out, len, "%sServer: %s\r\nConnection: Close\r\n%s%s%s%s%s%s%s",
(status == 401 ? "WWW-Authenticate: Basic realm=\"Icecast2 Server\"\r\n" : ""),
(cache ? "" : "Cache-Control: no-cache\r\n"
(cache ? "" : "Cache-Control: no-cache, no-store\r\n"
"Expires: Mon, 26 Jul 1997 05:00:00 GMT\r\n"
"Pragma: no-cache\r\n"),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment