mirror of
https://github.com/Kong/insomnia.git
synced 2026-04-29 18:42:57 -04:00
Fix empty query paramter value in editor will generate url params without equal sign issue
This commit is contained in:
@@ -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 }) };
|
||||
|
||||
Reference in New Issue
Block a user