Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
6e7c65bc
Commit
6e7c65bc
authored
Feb 24, 2013
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send Expires:-headers on all cache=0 requests, close
#1870
svn path=/icecast/trunk/icecast/; revision=18805
parent
d0bf2c64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/format_mp3.c
src/format_mp3.c
+0
-4
src/util.c
src/util.c
+3
-1
No files found.
src/format_mp3.c
View file @
6e7c65bc
...
...
@@ -679,10 +679,6 @@ static int format_mp3_create_client_data(source_t *source, client_t *client)
bytes
=
snprintf
(
ptr
,
remaining
,
"Content-Length: 221183499
\r\n
"
);
remaining
-=
bytes
;
ptr
+=
bytes
;
/* avoid browser caching, reported via forum */
bytes
=
snprintf
(
ptr
,
remaining
,
"Expires: Mon, 26 Jul 1997 05:00:00 GMT
\r\n
"
);
remaining
-=
bytes
;
ptr
+=
bytes
;
}
client
->
format_data
=
client_mp3
;
...
...
src/util.c
View file @
6e7c65bc
...
...
@@ -569,7 +569,9 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
currenttime_buffer
,
contenttype_buffer
,
(
status
==
401
?
"WWW-Authenticate: Basic realm=
\"
Icecast2 Server
\"\r\n
"
:
""
),
(
cache
?
""
:
"Cache-Control: no-cache
\r\n
"
),
(
cache
?
""
:
"Cache-Control: no-cache
\r\n
"
"Expires: Mon, 26 Jul 1997 05:00:00 GMT
\r\n
"
"Pragma: no-cache
\r\n
"
),
(
datablock
?
"
\r\n
"
:
""
),
(
datablock
?
datablock
:
""
));
config_release_config
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment