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
e099f80a
Commit
e099f80a
authored
Mar 28, 2018
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Only report one Upgrade:-Header on upgrade
parent
789dd067
Pipeline
#92
passed with stage
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/util.c
src/util.c
+3
-3
No files found.
src/util.c
View file @
e099f80a
...
...
@@ -682,13 +682,13 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
return
-
1
;
if
(
client
)
{
if
(
client
->
con
->
tlsmode
!=
ICECAST_TLSMODE_DISABLED
)
upgrade_header
=
"Upgrade: TLS/1.0
\r\n
"
;
switch
(
client
->
reuse
)
{
case
ICECAST_REUSE_CLOSE
:
connection_header
=
"Close"
;
break
;
case
ICECAST_REUSE_KEEPALIVE
:
connection_header
=
"Keep-Alive"
;
break
;
case
ICECAST_REUSE_UPGRADETLS
:
connection_header
=
"Upgrade"
;
break
;
case
ICECAST_REUSE_UPGRADETLS
:
connection_header
=
"Upgrade"
;
upgrade_header
=
""
;
break
;
}
if
(
client
->
con
->
tlsmode
!=
ICECAST_TLSMODE_DISABLED
)
upgrade_header
=
"Upgrade: TLS/1.0
\r\n
"
;
}
if
(
offset
==
-
1
)
...
...
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