-
-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
webcast protocol.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -661,7 +661,11 @@ let handle_client ~port ~icy h = | |
in | ||
let hprotocol = | ||
try | ||
if hmethod = `Get && assoc_uppercase "UPGRADE" headers <> "websocket" then raise Exit; | ||
if hmethod = `Get && | ||
assoc_uppercase "UPGRADE" headers <> "websocket" then | ||
raise Exit; | ||
if assoc_uppercase "SEC-WEBSOCKET-PROTOCOL" headers <> "webcast" then | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
smimram
Member
|
||
raise Exit; | ||
`Websocket | ||
with | ||
| _ -> hprotocol | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
2 comments
on commit ecaf1bd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should really try to keep some doc and examples in Liquidsoap I think... (of course not in the test
dir...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Not sure how to do it, tho, will think about it.
I am no really sure that this is a good idea: can you enforce the protocol in the browser???