Skip to content

Commit 52cbb46

Browse files
committed
Forward search params (Fixes JRoy#7)
1 parent b01b53f commit 52cbb46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function handleRequest(request: Request, env: BoundEnv): Promise<Response>
3131
}
3232

3333
const url = new URL(request.url)
34-
let [hookId, hookToken] = url.pathname.substring(1).split("/");
34+
let [hookId, hookToken] = (url.pathname + url.search).substring(1).split("/");
3535

3636
if (typeof(hookToken) == 'undefined') {
3737
return new Response('Missing Webhook Authorization', { status: 400 });

0 commit comments

Comments
 (0)