Commit fd6b065a authored by Philipp Schafft's avatar Philipp Schafft 🦁
Browse files

Feature: Allow the use of "Downgrade" when normally "Upgrade" would be the correct keyword

parent 51ff8567
......@@ -1347,8 +1347,10 @@ static void _handle_connection(void)
}
upgrade = httpp_getvar(parser, "upgrade");
if (upgrade == NULL)
upgrade = httpp_getvar(parser, "downgrade");
connection = httpp_getvar(parser, "connection");
if (upgrade && connection && strcasecmp(connection, "upgrade") == 0) {
if (upgrade && connection && (strcasecmp(connection, "upgrade") == 0 || strcasecmp(connection, "downgrade") == 0)) {
if (client->con->tlsmode != ICECAST_TLSMODE_DISABLED && strstr(upgrade, "TLS/1.0") != NULL) {
client_send_101(client, ICECAST_REUSE_UPGRADETLS);
continue;
......
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