Skip to content

Commit cc33c50

Browse files
committed
chore: use rawurl
1 parent bdfa92e commit cc33c50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/getHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const makeHandler =
5757
let requestMode = mode
5858
const ev = JSON.stringify(event)
5959
// Ensure that paths are encoded - but don't double-encode them
60-
event.path = new URL(event.path, event.rawUrl).pathname
60+
event.path = new URL(event.rawUrl).pathname
6161
// Next expects to be able to parse the query from the URL
6262
const query = new URLSearchParams(event.queryStringParameters).toString()
6363
event.path = query ? `${event.path}?${query}` : event.path

0 commit comments

Comments
 (0)