Comparing version 4.2.8 to 4.2.9
@@ -173,10 +173,7 @@ "use strict"; | ||
this.#res.headers.forEach((v, k) => { | ||
if (k === "set-cookie" && this.#res) { | ||
const cookies = this.#res.headers.getSetCookie(); | ||
for (const cookie of cookies) { | ||
this.#headers?.append("set-cookie", cookie); | ||
} | ||
return; | ||
if (k === "set-cookie") { | ||
this.#headers?.append(k, v); | ||
} else { | ||
this.#headers?.set(k, v); | ||
} | ||
this.#headers?.set(k, v); | ||
}); | ||
@@ -183,0 +180,0 @@ setHeaders(this.#headers, this.#preparedHeaders); |
@@ -150,10 +150,7 @@ // src/context.ts | ||
this.#res.headers.forEach((v, k) => { | ||
if (k === "set-cookie" && this.#res) { | ||
const cookies = this.#res.headers.getSetCookie(); | ||
for (const cookie of cookies) { | ||
this.#headers?.append("set-cookie", cookie); | ||
} | ||
return; | ||
if (k === "set-cookie") { | ||
this.#headers?.append(k, v); | ||
} else { | ||
this.#headers?.set(k, v); | ||
} | ||
this.#headers?.set(k, v); | ||
}); | ||
@@ -160,0 +157,0 @@ setHeaders(this.#headers, this.#preparedHeaders); |
{ | ||
"name": "hono", | ||
"version": "4.2.8", | ||
"version": "4.2.9", | ||
"description": "Ultrafast web framework for the Edges", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
784986
21904