Skip to content

Commit 78c55af

Browse files
authored
Update http_client_extension.cpp
1 parent d85d8ca commit 78c55af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/http_client_extension.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ static void HTTPGetRequestFunction(DataChunk &args, ExpressionState &state, Vect
4242
duckdb_httplib_openssl::Client client(domain.c_str());
4343
client.set_read_timeout(10, 0); // 10 seconds
4444

45-
// Follow redirects, limit to 10 by default
45+
// Follow redirects
4646
client.set_follow_location(true);
4747

4848
// Make the GET request
@@ -133,7 +133,8 @@ static void HTTPPostRequestFunction(DataChunk &args, ExpressionState &state, Vec
133133
// Create the client and set a timeout (e.g., 10 seconds)
134134
duckdb_httplib_openssl::Client client(domain.c_str());
135135
client.set_read_timeout(10, 0); // 10 seconds
136-
client.set_follow_location(true); // Follow redirects
136+
// Follow redirects
137+
client.set_follow_location(true);
137138

138139
// Prepare headers
139140
duckdb_httplib_openssl::Headers header_map;

0 commit comments

Comments
 (0)