mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
chore: run formatter
This commit is contained in:
parent
559d397380
commit
fe90b30427
3 changed files with 26 additions and 10 deletions
|
|
@ -41,6 +41,7 @@ function createRequestHeaders(request: NextRequest) {
|
|||
|
||||
function createResponseHeaders(response: Response) {
|
||||
const headers = new Headers(response.headers);
|
||||
const setCookies = response.headers.getSetCookie();
|
||||
|
||||
for (const header of HOP_BY_HOP_HEADERS) {
|
||||
headers.delete(header);
|
||||
|
|
@ -48,6 +49,11 @@ function createResponseHeaders(response: Response) {
|
|||
|
||||
headers.delete("content-encoding");
|
||||
headers.delete("content-length");
|
||||
headers.delete("set-cookie");
|
||||
|
||||
for (const cookie of setCookies) {
|
||||
headers.append("set-cookie", cookie);
|
||||
}
|
||||
|
||||
return headers;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue