Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
68248d15
Commit
68248d15
authored
Feb 02, 2015
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Also check for Connection:-Header
parent
71408e62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/connection.c
src/connection.c
+3
-2
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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