Skip to content

Commit

Permalink
fix(proxy): respect fetchOptions.method over incoming request method (
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsgulbis authored Jul 17, 2023
1 parent a8fecea commit a3192fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function proxyRequest(
opts: ProxyOptions = {}
) {
// Method
const method = getMethod(event);
const method = opts.fetchOptions?.method || getMethod(event);

// Body
let body;
Expand Down

0 comments on commit a3192fb

Please sign in to comment.