We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 014e0d1 commit b770675Copy full SHA for b770675
source/hunt/httpclient/Response.d
@@ -27,7 +27,7 @@ class Response {
27
* @return string
28
*/
29
string content() {
30
- if(_stringContent.empty()) {
+ if(_stringContent.empty() && _response.haveBody()) {
31
_stringContent = _response.getBody().toString();
32
}
33
return _stringContent;
0 commit comments