Check for http_status in answer_type::operator bool().
This commit is contained in:
parent
9c279822b2
commit
4016260954
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user