Skip to content

Commit a2fc632

Browse files
authored
Merge pull request duckdb#105 from carlopi/content_type_only_wasm
Append content-type only on DuckDB-Wasm
2 parents caf527f + 7393dbf commit a2fc632

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extension/httpfs/s3fs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ static HTTPHeaders create_s3_header(string url, string query, string host, strin
7575
hash_str canonical_request_hash_str;
7676
if (content_type.length() > 0) {
7777
signed_headers += "content-type;";
78+
#ifdef EMSCRIPTEN
7879
res["content-type"] = content_type;
80+
#endif
7981
}
8082
signed_headers += "host;x-amz-content-sha256;x-amz-date";
8183
if (auth_params.session_token.length() > 0) {

0 commit comments

Comments
 (0)