mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Highly experimental HTTP PUT support. ref #1812
We are handling it the same as we would handle a SOURCE request. Due to legacy code, sender MUST send proper content-type header, if content type is not audio/mpeg! Can be tested using real-time encoded output and piping it into | curl -u username:password -H "Content-type: application/ogg" -T - http://localhost:8000/mountname.ogg Note that this example has ZERO timing, so a simple 'cat *.ogg' will fail. Whatever feeds the pipe must do it at proper timing for real-time playback! svn path=/icecast/trunk/icecast/; revision=18888
This commit is contained in:
parent
26640bb58d
commit
3c359b62dd
@ -1344,7 +1344,7 @@ static void _handle_connection(void)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (parser->req_type == httpp_req_source) {
|
||||
if (parser->req_type == httpp_req_source || parser->req_type == httpp_req_put) {
|
||||
_handle_source_request (client, uri);
|
||||
}
|
||||
else if (parser->req_type == httpp_req_stats) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user