Commit 4c6d778e authored by Philipp Schafft's avatar Philipp Schafft 🦁

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.
parent 5f9850fc
......@@ -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)
{
/* 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)
......
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