File tree Expand file tree Collapse file tree 4 files changed +6
-0
lines changed
Expand file tree Collapse file tree 4 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ void HttpResponse::HttpResponseInit
5656 {
5757 this ->content = content;
5858 this ->responseCode = responseCode;
59+ if (responseType == HttpResponse::SHOUTCAST_CONTENT)
60+ this ->responseCode |= HttpUtils::shoutcast_response;
5961 this ->setHeader (HttpUtils::http_header_content_type, contentType);
6062 this ->fp = -1 ;
6163 }
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ const int HttpUtils::http_insufficient_storage = MHD_HTTP_INSUFFICIENT_STORAGE;
9696const int HttpUtils::http_bandwidth_limit_exceeded = MHD_HTTP_BANDWIDTH_LIMIT_EXCEEDED;
9797const int HttpUtils::http_not_extended = MHD_HTTP_NOT_EXTENDED;
9898
99+ const int HttpUtils::shoutcast_response = MHD_ICY_FLAG;
99100
100101const std::string HttpUtils::http_header_accept = MHD_HTTP_HEADER_ACCEPT;
101102const std::string HttpUtils::http_header_accept_charset = MHD_HTTP_HEADER_ACCEPT_CHARSET;
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class HttpResponse
4949 {
5050 STRING_CONTENT = 0 ,
5151 FILE_CONTENT,
52+ SHOUTCAST_CONTENT,
5253 DIGEST_AUTH_FAIL,
5354 BASIC_AUTH_FAIL
5455 };
Original file line number Diff line number Diff line change @@ -139,6 +139,8 @@ class HttpUtils
139139 static const int http_bandwidth_limit_exceeded;
140140 static const int http_not_extended;
141141
142+ static const int shoutcast_response;
143+
142144 /* See also: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html */
143145 static const std::string http_header_accept;
144146 static const std::string http_header_accept_charset;
You can’t perform that action at this time.
0 commit comments