Skip to content

Commit 7d18911

Browse files
authored
Construct client url with scheme if specified always (#17)
1 parent 4790bc7 commit 7d18911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/http_client_extension.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ static std::pair<duckdb_httplib_openssl::Client, std::string> SetupHttpClient(co
4040
path = "/";
4141
}
4242

43-
// Construct client url with https if specified
44-
if (scheme == "https") {
43+
// Construct client url with scheme if specified
44+
if (scheme.length() > 0) {
4545
client_url = scheme + "://" + domain;
4646
} else {
4747
client_url = domain;

0 commit comments

Comments
 (0)