summaryrefslogtreecommitdiff
path: root/ext/node
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node')
-rw-r--r--ext/node/polyfills/http.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/http.ts b/ext/node/polyfills/http.ts
index 27fc577c0..d45854162 100644
--- a/ext/node/polyfills/http.ts
+++ b/ext/node/polyfills/http.ts
@@ -1394,7 +1394,7 @@ export class ServerResponse extends NodeWritable {
}
getHeader(name: string) {
- return this.#headers.get(name);
+ return this.#headers.get(name) ?? undefined;
}
removeHeader(name: string) {
return this.#headers.delete(name);