Skip to content

Commit

Permalink
chore: encode query
Browse files Browse the repository at this point in the history
  • Loading branch information
tachibana-shin committed Jan 26, 2024
1 parent a722e85 commit d1288b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const useProxyStore = defineStore("proxy", () => {
url +=
(hasQuery ? "&" : "?") +
`${proxy.name ?? ""}${proxy.name ? "=" : ""}${
proxy.encodeURI ? encodeURIComponent(req.url) : req.url
proxy.encodeURI ? encodeURIComponent(req.url) :encodeURI( req.url).replace(/\?/g, encodeURIComponent("?"))
}`
} else {
if (!req.data) req.data = {}
Expand Down

0 comments on commit d1288b2

Please sign in to comment.