From b84e729dfcc428c2696b86b09e736ecdd10db2ff Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Thu, 11 May 2023 14:17:33 -0700 Subject: Revert "http_connection: Allow empty json objects" This reverts commit 02e01b5108d46720a0b438c0d79952464320d954. This commit is being reverted because it causes login failures on Firefox browsers. This commit originally was added with the idea that it did not fix anything on upstream, but made some peoples forks better. It appears to have broken some upstream things, so the right thing to do is to revert it until those breakages can be understood. Signed-off-by: Ed Tanous Change-Id: I04de84fca1a8de657f6941653f2a3e595ee725d5 --- http/http_connection.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/http_connection.hpp') 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 allowed{ -- cgit v1.2.3