Check for http_status in answer_type::operator bool().

This commit is contained in:
tastytea 2020-01-05 12:03:42 +01:00
parent 9c279822b2
commit 4016260954
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07

View File

@ -21,7 +21,7 @@ namespace mastodonpp
answer_type::operator bool() const
{
return (curl_error_code == 0);
return (curl_error_code == 0 && http_status == 200);
}
answer_type::operator string_view() const