Skip to content

Commit

Permalink
fix(azure): pass query params to local call (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Jun 29, 2022
1 parent 54e9716 commit f1fe6cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/entries/azure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export async function handle (context, req) {
let url: string
if (req.headers['x-ms-original-url']) {
// This URL has been proxied as there was no static file matching it.
url = parseURL(req.headers['x-ms-original-url']).pathname
const parsedURL = parseURL(req.headers['x-ms-original-url'])
url = parsedURL.pathname + parsedURL.search
} else {
// Because Azure SWA handles /api/* calls differently they
// never hit the proxy and we have to reconstitute the URL.
Expand Down

0 comments on commit f1fe6cd

Please sign in to comment.