Skip to content

Commit

Permalink
fix: url is encoded during execute pre-request script (#7229)
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryYangxx authored Apr 3, 2024
1 parent c12c4ff commit 9258fe3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/insomnia/src/sdk/objects/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,8 @@ export function mergeRequests(
}

const updatedReqProperties: Partial<InsomniaRequest> = {
url: typeof updatedReq.url === 'string' ? updatedReq.url : updatedReq.url.toString(),
// url is encoded during parsing phase. Need decode url In order to recognized variables
url: decodeURI(typeof updatedReq.url === 'string' ? updatedReq.url : updatedReq.url.toString()),
method: updatedReq.method,
body: {
mimeType: mimeType,
Expand Down

0 comments on commit 9258fe3

Please sign in to comment.