Skip to content

Commit

Permalink
core: utils: http: include query string in path for auth (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirillo authored Jan 10, 2025
1 parent 4b52216 commit 732e3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export async function postWithSymmetricKey(
function getPathFromUrl(url: string): string {
try {
const parsedUrl = new URL(url)
return parsedUrl.pathname || '/'
return parsedUrl.pathname + parsedUrl.search || '/'
} catch {
return url.startsWith('/') ? url : `/${url}`
}
Expand Down

0 comments on commit 732e3f3

Please sign in to comment.