We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4199c23 commit 0689fcaCopy full SHA for 0689fca
packages/next/src/middleware/request.ts
@@ -70,8 +70,9 @@ export class MiddlewareRequest extends Request {
70
if (typeof destination === 'string' && destination.startsWith('/')) {
71
destination = new URL(destination, this.url)
72
}
73
- const response = await this.context.rewrite(destination)
74
this.applyHeaders()
+ const response = await this.context.rewrite(destination)
75
+
76
return new MiddlewareResponse(response, init)
77
78
0 commit comments