Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

Closed Unassigned: http_msg_base::_extract_string throw exception with http status code 204 [61]

$
0
0
When the response is 204 No Content, it would still expect there is a textual content returned. Please consider to check content length first or ignore the case.

HTTP/1.1 204 No Content
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 0
Expires: -1
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Tue, 08 Oct 2013 20:30:17 GMT

utility::string_t details::http_msg_base::_extract_string() src\http\common\http_msg.cpp line 207

// Content-Type must have textual type.
if(!is_content_type_textual(content))
{
throw http_exception(textual_content_type_missing);
}
Comments: This issue is fixed in the 1.4 release.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>