Skip to content

Commit d85d8ca

Browse files
authored
Update http_client_extension.cpp
1 parent f7fbeb3 commit d85d8ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/http_client_extension.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ 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
136137

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

0 commit comments

Comments
 (0)