fix: converting request url to valid URI on code generate (#1827)

This commit is contained in:
Rinku Chaudhari 2024-04-15 23:08:27 +05:45 committed by GitHub
parent 535d6e0389
commit dce792accd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,7 +51,7 @@ const createPostData = (body) => {
export const buildHarRequest = ({ request, headers }) => { export const buildHarRequest = ({ request, headers }) => {
return { return {
method: request.method, method: request.method,
url: request.url, url: encodeURI(request.url),
httpVersion: 'HTTP/1.1', httpVersion: 'HTTP/1.1',
cookies: [], cookies: [],
headers: createHeaders(headers), headers: createHeaders(headers),