From cc76b15174913dabef939b4968becae828299c5e Mon Sep 17 00:00:00 2001 From: Patrick Vacek Date: Thu, 30 Aug 2018 10:39:32 +0200 Subject: [PATCH] Fix return value from HTTP 400s. --- src/sota_tools/ostree_http_repo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sota_tools/ostree_http_repo.cc b/src/sota_tools/ostree_http_repo.cc index 36a62b97b3..2932275bd3 100644 --- a/src/sota_tools/ostree_http_repo.cc +++ b/src/sota_tools/ostree_http_repo.cc @@ -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;