url already has params on it
This commit is contained in:
parent
3fbb8e2d84
commit
cfbec74726
@ -268,7 +268,7 @@ std::optional<std::string> launchpad::api_get(const std::string& endpoint, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (http_code >= 400) {
|
if (http_code >= 400) {
|
||||||
std::cerr << "HTTP GET request to " << url << " with params " << params << " failed with code: " << http_code << "\nResponse: " << readBuffer << std::endl;
|
std::cerr << "HTTP GET request to " << url << " failed with code: " << http_code << "\nResponse: " << readBuffer << std::endl;
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ std::optional<std::string> launchpad::api_post(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (http_code >= 400) {
|
if (http_code >= 400) {
|
||||||
std::cerr << "HTTP POST request to " << url << " with params " << params << " failed with code: " << http_code << "\nResponse: " << readBuffer << std::endl;
|
std::cerr << "HTTP POST request to " << url << " failed with code: " << http_code << "\nResponse: " << readBuffer << std::endl;
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user