summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http/http_connection.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp
index c8ae1fd8fa..d4428df5b5 100644
--- a/http/http_connection.hpp
+++ b/http/http_connection.hpp
@@ -342,7 +342,7 @@ class Connection :
res.setHashAndHandleNotModified();
- if (res.body().empty() && !res.jsonValue.is_null())
+ if (res.body().empty() && !res.jsonValue.empty())
{
using http_helpers::ContentType;
std::array<ContentType, 3> allowed{