[xiph-commits] r18888 - icecast/trunk/icecast/src

dm8tbr at svn.xiph.org dm8tbr at svn.xiph.org
Fri Mar 29 08:07:33 PDT 2013


Author: dm8tbr
Date: 2013-03-29 08:07:33 -0700 (Fri, 29 Mar 2013)
New Revision: 18888

Modified:
   icecast/trunk/icecast/src/connection.c
Log:
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!


Modified: icecast/trunk/icecast/src/connection.c
===================================================================
--- icecast/trunk/icecast/src/connection.c	2013-03-29 14:41:24 UTC (rev 18887)
+++ icecast/trunk/icecast/src/connection.c	2013-03-29 15:07:33 UTC (rev 18888)
@@ -1344,7 +1344,7 @@
                     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) {



More information about the commits mailing list