diff options
author | Elias Fleckenstein <54945686+EliasFleckenstein03@users.noreply.github.com> | 2020-11-04 16:57:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 16:57:47 +0100 |
commit | 3e16c3a78fff61c20e63ba730d15e94e3bb877b4 (patch) | |
tree | c070350db219f2c4241d22bc31949685c7b42fe9 /src/convert_json.cpp | |
parent | 5d9ae5a91c544fc7fbd475decf47cef7e09ef8fc (diff) | |
parent | 6ccb5835ff55d85156be91473c598eca9d6cb9a6 (diff) | |
download | dragonfireclient-3e16c3a78fff61c20e63ba730d15e94e3bb877b4.tar.xz |
Merge branch 'master' into master
Diffstat (limited to 'src/convert_json.cpp')
-rw-r--r-- | src/convert_json.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/convert_json.cpp b/src/convert_json.cpp index 0a8fa1e22..c774aa002 100644 --- a/src/convert_json.cpp +++ b/src/convert_json.cpp @@ -29,8 +29,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "httpfetch.h" #include "porting.h" -Json::Value fetchJsonValue( - const std::string &url, std::vector<std::string> *extra_headers) +Json::Value fetchJsonValue(const std::string &url, + std::vector<std::string> *extra_headers) { HTTPFetchRequest fetch_request; HTTPFetchResult fetch_result; @@ -57,12 +57,10 @@ Json::Value fetchJsonValue( errorstream << "Failed to parse json data " << errs << std::endl; if (fetch_result.data.size() > 100) { errorstream << "Data (" << fetch_result.data.size() - << " bytes) printed to warningstream." << std::endl; - warningstream << "data: \"" << fetch_result.data << "\"" - << std::endl; + << " bytes) printed to warningstream." << std::endl; + warningstream << "data: \"" << fetch_result.data << "\"" << std::endl; } else { - errorstream << "data: \"" << fetch_result.data << "\"" - << std::endl; + errorstream << "data: \"" << fetch_result.data << "\"" << std::endl; } return Json::Value(); } |