mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-11-03 04:17:17 -05:00
Fix: Do not send 100-continue in plain over TLS sockets
This fixes the problem of Icecast2 sending 100-continue responses in plain on TLS sockets (and thereby breaking the TLS connection). This is not a complete fix for the 100-continue behavior. However it allows to use TLS with 100-continue.
This commit is contained in:
parent
5f9850fc83
commit
4c6d778e9a
@ -211,7 +211,9 @@ static void client_send_error(client_t *client, int status, int plain, const cha
|
|||||||
void client_send_100(client_t *client)
|
void client_send_100(client_t *client)
|
||||||
{
|
{
|
||||||
/* On demand inject a HTTP/1.1 100 Continue to make sure clients are happy */
|
/* On demand inject a HTTP/1.1 100 Continue to make sure clients are happy */
|
||||||
sock_write (client->con->sock, "HTTP/1.1 100 Continue\r\n\r\n");
|
static const char str[] = "HTTP/1.1 100 Continue\r\n\r\n";
|
||||||
|
const size_t len = strlen(str);
|
||||||
|
client_send_bytes(client, str, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
void client_send_400(client_t *client, const char *message)
|
void client_send_400(client_t *client, const char *message)
|
||||||
|
Loading…
Reference in New Issue
Block a user