Fixed error where the return code was 200 for successfull queries

This commit is contained in:
tastytea 2018-02-27 04:34:09 +01:00
parent 9bc6e401aa
commit 06c9e2bce2
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.7)
project (mastodon-cpp
VERSION 0.4.1
VERSION 0.4.2
LANGUAGES CXX
)

View File

@ -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