also succeed, when the result status is not 200 Ok

This commit is contained in:
2021-11-16 21:42:53 +01:00
parent 59f20f9218
commit 205c6af266

View File

@ -252,9 +252,6 @@ tl::expected<void, std::string> AsyncHttpRequest::result() const
if (m_result != ESP_OK)
return tl::make_unexpected(fmt::format("http request failed: {}", esp_err_to_name(m_result)));
if (m_statusCode != HttpStatus_Ok)
return tl::make_unexpected(fmt::format("http request failed: {}", m_statusCode));
return {};
}