Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Icecast-Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
93
Issues
93
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Icecast-Server
Commits
9cbc110f
Commit
9cbc110f
authored
Nov 28, 2016
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Do not announce Upgrade to TLS on TLS Mode DISABLED sockets
parent
a864fbf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/util.c
src/util.c
+4
-1
No files found.
src/util.c
View file @
9cbc110f
...
...
@@ -676,6 +676,7 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
ssize_t
ret
;
char
*
extra_headers
;
const
char
*
connection_header
=
"Close"
;
const
char
*
upgrade_header
=
""
;
if
(
!
out
)
return
-
1
;
...
...
@@ -686,6 +687,8 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
case
ICECAST_REUSE_KEEPALIVE
:
connection_header
=
"Keep-Alive"
;
break
;
case
ICECAST_REUSE_UPGRADETLS
:
connection_header
=
"Upgrade"
;
break
;
}
if
(
client
->
con
->
tlsmode
!=
ICECAST_TLSMODE_DISABLED
)
upgrade_header
=
"Upgrade: TLS/1.0
\r\n
"
;
}
if
(
offset
==
-
1
)
...
...
@@ -758,7 +761,7 @@ ssize_t util_http_build_header(char * out, size_t len, ssize_t offset,
connection_header
,
(
client
&&
client
->
admin_command
==
ADMIN_COMMAND_ERROR
?
"GET, SOURCE"
:
"GET"
),
(
config
->
tls_ok
?
"Upgrade: TLS/1.0
\r\n
"
:
""
)
,
upgrade_header
,
currenttime_buffer
,
contenttype_buffer
,
(
status
==
401
?
"WWW-Authenticate: Basic realm=
\"
Icecast2 Server
\"\r\n
"
:
""
),
...
...
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