mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Fix a bug in one of the error (404) responses.
svn path=/trunk/icecast/; revision=3806
This commit is contained in:
parent
f349c3bf3e
commit
6e23c0f8fc
@ -511,7 +511,7 @@ static void *_handle_connection(void *arg)
|
|||||||
else {
|
else {
|
||||||
client->respcode = 404;
|
client->respcode = 404;
|
||||||
bytes = sock_write(client->con->sock,
|
bytes = sock_write(client->con->sock,
|
||||||
"HTTP/1.0 404 Not Found\r\nContent-Type: text/html\r\n<b>The file you requested could not be found</b>\r\n");
|
"HTTP/1.0 404 Not Found\r\nContent-Type: text/html\r\n\r\n<b>The file you requested could not be found</b>\r\n");
|
||||||
}
|
}
|
||||||
avl_tree_unlock(global.source_tree);
|
avl_tree_unlock(global.source_tree);
|
||||||
if(bytes > 0) client->con->sent_bytes = bytes;
|
if(bytes > 0) client->con->sent_bytes = bytes;
|
||||||
|
Loading…
Reference in New Issue
Block a user