Commit 3c359b62 authored by Thomas B. Rücker's avatar Thomas B. Rücker 😊
Browse files

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
parent 26640bb5
......@@ -1344,7 +1344,7 @@ static void _handle_connection(void)
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) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment