Fixed error where the return code was 200 for successfull queries
This commit is contained in:
parent
9bc6e401aa
commit
06c9e2bce2
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastodon-cpp
|
||||
VERSION 0.4.1
|
||||
VERSION 0.4.2
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -121,6 +121,7 @@ const std::uint16_t API::http::request_sync(const method &meth,
|
|||
{ // OK or Found or Temporary Redirect
|
||||
// Only return body
|
||||
answer = answer.substr(pos + 4);
|
||||
return 0;
|
||||
}
|
||||
else if (ret == 301 || ret == 308)
|
||||
{ // Moved Permanently or Permanent Redirect
|
||||
|
|
Reference in New Issue