Skip to content

Commit 00a2697

Browse files
authored
Merge pull request #60 from Mytherin/s3fsfullproto
Use correct http_proto in s3 glob
2 parents 217ec8e + 14b0d82 commit 00a2697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/httpfs/s3fs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,10 +1019,10 @@ string AWSListObjectV2::Request(string &path, HTTPParams &http_params, S3AuthPar
10191019
create_s3_header(req_path, req_params, parsed_url.host, "s3", "GET", s3_auth_params, "", "", "", "");
10201020

10211021
// Get requests use fresh connection
1022-
auto client = http_params.http_util.InitializeClient(http_params, parsed_url.http_proto + parsed_url.host);
1022+
string full_host = parsed_url.http_proto + parsed_url.host;
10231023
std::stringstream response;
10241024
GetRequestInfo get_request(
1025-
parsed_url.host, listobjectv2_url, header_map, http_params,
1025+
full_host, listobjectv2_url, header_map, http_params,
10261026
[&](const HTTPResponse &response) {
10271027
if (static_cast<int>(response.status) >= 400) {
10281028
string trimmed_path = path;

0 commit comments

Comments
 (0)