1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
This commit is contained in:
Divy Srivastava 2024-10-18 19:30:43 +05:30
parent cf6f921df5
commit bf15521314

View file

@ -565,12 +565,11 @@ function mapToCallback(context, callback, onError) {
if (headers && headers.length > 0) {
if (headers.length == 1) {
if (
inner.canInferContentType &&
headers[0][0] === "Content-Type"
!(inner.canInferContentType &&
headers[0][0] === "Content-Type")
) {
continue;
op_http_set_response_header(req, headers[0][0], headers[0][1]);
}
op_http_set_response_header(req, headers[0][0], headers[0][1]);
} else {
op_http_set_response_headers(req, headers);
}