diff options
author | methodus <methodus@web.de> | 2012-10-27 02:02:49 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-27 02:02:49 +0200 |
commit | 4509269af55543c85653d9fd4da17d54c71deffb (patch) | |
tree | 112c96ea0334c6a7da1927c57b6efc03699d666b /httptnt/resourceStreamer.ecpp | |
parent | ef23213790af67c8d916d52d0633968d239f9e12 (diff) | |
download | vdr-plugin-upnp-4509269af55543c85653d9fd4da17d54c71deffb.tar.gz vdr-plugin-upnp-4509269af55543c85653d9fd4da17d54c71deffb.tar.bz2 |
Fixed Partial Content Header title
Diffstat (limited to 'httptnt/resourceStreamer.ecpp')
-rw-r--r-- | httptnt/resourceStreamer.ecpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/httptnt/resourceStreamer.ecpp b/httptnt/resourceStreamer.ecpp index d83e0d4..9579fe6 100644 --- a/httptnt/resourceStreamer.ecpp +++ b/httptnt/resourceStreamer.ecpp @@ -39,6 +39,7 @@ int doRequest(tnt::HttpReply reply, tnt::HttpRequest request, std::string object } int code = HTTP_OK; + string codeText = "OK"; //reply.setKeepAliveHeader(); reply.setContentType(streamer->GetContentType()); @@ -88,9 +89,10 @@ int doRequest(tnt::HttpReply reply, tnt::HttpRequest request, std::string object return HTTP_INTERNAL_SERVER_ERROR; } code = HTTP_PARTIAL_CONTENT; + codeText = "Partial Content"; } - reply.setDirectMode(code); + reply.setDirectMode(code, codeText.c_str()); size_t bytesRead = 0; char buffer[KB(16)]; |