Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request #929 from advancedtelematic/bugfix/fix-http-return…
Browse files Browse the repository at this point in the history
…-code

Fix return value from HTTP 400s.
  • Loading branch information
pattivacek authored Aug 30, 2018
2 parents b116275 + cc76b15 commit fad299b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sota_tools/ostree_http_repo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ bool OSTreeHttpRepo::Get(const boost::filesystem::path &path) const {
if (err == CURLE_HTTP_RETURNED_ERROR) {
// http error (error code >= 400)
// verbose mode will display the details
return true;
return false;
} else if (err != CURLE_OK) {
// other unexpected error
char *last_url = nullptr;
Expand Down

0 comments on commit fad299b

Please sign in to comment.