Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
spr0cketeer
Icecast-Server
Commits
68248d15
Commit
68248d15
authored
Feb 02, 2015
by
Philipp Schafft
🦁
Browse files
Fix: Also check for Connection:-Header
parent
71408e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/connection.c
View file @
68248d15
...
...
@@ -1423,7 +1423,7 @@ static void _handle_connection(void)
}
if
(
already_parsed
||
httpp_parse
(
parser
,
client
->
refbuf
->
data
,
node
->
offset
))
{
char
*
uri
;
const
char
*
upgrade
;
const
char
*
upgrade
,
*
connection
;
/* we may have more than just headers, so prepare for it */
if
(
node
->
stream_offset
==
node
->
offset
)
{
...
...
@@ -1451,7 +1451,8 @@ static void _handle_connection(void)
}
upgrade
=
httpp_getvar
(
parser
,
"upgrade"
);
if
(
upgrade
&&
strstr
(
upgrade
,
"TLS/1.0"
)
!=
NULL
)
{
connection
=
httpp_getvar
(
parser
,
"connection"
);
if
(
upgrade
&&
connection
&&
strstr
(
upgrade
,
"TLS/1.0"
)
!=
NULL
&&
strcasecmp
(
connection
,
"upgrade"
)
==
0
)
{
client_send_101
(
client
,
ICECAST_REUSE_UPGRADETLS
);
continue
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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