diff options
author | oskwon <kos@dev3> | 2014-06-26 15:52:29 (GMT) |
---|---|---|
committer | oskwon <kos@dev3> | 2014-06-26 15:52:29 (GMT) |
commit | 41562f0f6c1e1b658e31e033ba0ce7e78fe0aa86 (patch) | |
tree | 3e58844b0b6c5611ef102c0f394723befb9d066b | |
parent | b340e5ee478f54454ae889e7b40d37245e2b71a4 (diff) |
Fix backward compatibility.
-rw-r--r-- | src/Http.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Http.cpp b/src/Http.cpp index 7746cc9..1f410c0 100644 --- a/src/Http.cpp +++ b/src/Http.cpp @@ -62,7 +62,7 @@ bool HttpHeader::parse_request(std::string header) } } - if (page == "/file") { + if (page == "/file_stream") { type = HttpHeader::TRANSCODING_FILE; } else if (page == "/m3u") { @@ -130,7 +130,7 @@ std::string HttpHeader::build_response(Mpeg *source) std::ostringstream m3u_oss; m3u_oss << "#EXTM3U\n"; m3u_oss << "#EXTVLCOPT--http-reconnect=true\n"; - m3u_oss << "http://" << params["Host"] << "/file?file=" << page_params["file"]; + m3u_oss << "http://" << params["Host"] << "/file_stream?file=" << page_params["file"]; if (page_params["position"] != "") { m3u_oss << "&position=" << page_params["position"]; } |