Skip to content

Commit d075a52

Browse files
committed
follow redirects
1 parent 8313b08 commit d075a52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/http_client_extension.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ 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
46+
client.set_follow_location(true);
47+
4548
// Make the GET request
4649
auto res = client.Get(path.c_str());
4750
if (res) {

0 commit comments

Comments
 (0)