fix(httpcommon): sonarqube warning cleanup (#3558)

Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com>
This commit is contained in:
Cody Maness
2025-01-22 08:16:14 -06:00
committed by GitHub
parent 2a31ee5422
commit 64544e7960
3 changed files with 28 additions and 29 deletions

View File

@@ -4,6 +4,9 @@
*/
#pragma once
// lib includes
#include <curl/curl.h>
// local includes
#include "network.h"
#include "thread_safe.h"
@@ -20,7 +23,7 @@ namespace http {
);
int reload_user_creds(const std::string &file);
bool download_file(const std::string &url, const std::string &file);
bool download_file(const std::string &url, const std::string &file, long ssl_version = CURL_SSLVERSION_TLSv1_3);
std::string url_escape(const std::string &url);
std::string url_get_host(const std::string &url);