mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 04:52:26 -05:00
fix
This commit is contained in:
parent
cf6f921df5
commit
bf15521314
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue