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 7e6ab6d commit cb64d23Copy full SHA for cb64d23
packages/open-next/src/core/routing/middleware.ts
@@ -74,7 +74,9 @@ export async function handleMiddleware(
74
const result: Response = await middleware.default({
75
// `geo` is pre Next 15.
76
geo: {
77
- city: headers["x-open-next-city"],
+ // The city name is percent-encoded.
78
+ // See https://github.com/vercel/vercel/blob/4cb6143/packages/functions/src/headers.ts#L94C19-L94C37
79
+ city: decodeURIComponent(headers["x-open-next-city"]),
80
country: headers["x-open-next-country"],
81
region: headers["x-open-next-region"],
82
latitude: headers["x-open-next-latitude"],
0 commit comments