From dce792accdde060aa19bd420af2690444e08b0ce Mon Sep 17 00:00:00 2001 From: Rinku Chaudhari <76877078+therealrinku@users.noreply.github.com> Date: Mon, 15 Apr 2024 23:08:27 +0545 Subject: [PATCH] fix: converting request url to valid URI on code generate (#1827) --- packages/bruno-app/src/utils/codegenerator/har.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/utils/codegenerator/har.js b/packages/bruno-app/src/utils/codegenerator/har.js index 5fde7961..0f265637 100644 --- a/packages/bruno-app/src/utils/codegenerator/har.js +++ b/packages/bruno-app/src/utils/codegenerator/har.js @@ -51,7 +51,7 @@ const createPostData = (body) => { export const buildHarRequest = ({ request, headers }) => { return { method: request.method, - url: request.url, + url: encodeURI(request.url), httpVersion: 'HTTP/1.1', cookies: [], headers: createHeaders(headers),