Skip to content

Commit

Permalink
Fix empty query paramter value in editor will generate url params wit…
Browse files Browse the repository at this point in the history
…hout equal sign issue
  • Loading branch information
cwangsmv authored Sep 19, 2024
1 parent f3f5f74 commit d87398f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/insomnia/src/network/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ export const responseTransform = async (patch: ResponsePatch, environmentId: str
};
export const transformUrl = (url: string, params: RequestParameter[], authentication: RequestAuthentication, shouldEncode: boolean) => {
const authQueryParam = getAuthQueryParams(authentication);
const customUrl = joinUrlAndQueryString(url, buildQueryStringFromParams(authQueryParam ? params.concat([authQueryParam]) : params));
const customUrl = joinUrlAndQueryString(url, buildQueryStringFromParams(authQueryParam ? params.concat([authQueryParam]) : params, true, { strictNullHandling: true }));
const isUnixSocket = customUrl.match(/https?:\/\/unix:\//);
if (!isUnixSocket) {
return { finalUrl: smartEncodeUrl(customUrl, shouldEncode, { strictNullHandling: true }) };
Expand Down

0 comments on commit d87398f

Please sign in to comment.