Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: typo
liyasthomas5f27b59dc089
diff --git a/helpers/RESTExtURLParams.ts b/helpers/RESTExtURLParams.tsindex 46a680fcb..1746bf197 100644--- a/helpers/RESTExtURLParams.ts+++ b/helpers/RESTExtURLParams.ts@@ -54,7 +54,7 @@ function parseV0ExtURL(urlParams: Record<string, any>): HoppRESTRequest {}if (urlParams.contentType) {- if (urlParams.contentType === "multipart/formdata") {+ if (urlParams.contentType === "multipart/form-data") {resolvedReq.body = {contentType: "multipart/form-data",body: JSON.parse(urlParams.bodyParams || "[]").map(@@ -68,10 +68,10 @@ function parseV0ExtURL(urlParams: Record<string, any>): HoppRESTRequest {),}} else if (isJSONContentType(urlParams.contentType)) {- if (urlParams.rawInput) {+ if (urlParams.rawParams) {resolvedReq.body = {contentType: urlParams.contentType,- body: urlParams.rawInput,+ body: urlParams.rawParams,}} else {resolvedReq.body = {@@ -82,7 +82,7 @@ function parseV0ExtURL(urlParams: Record<string, any>): HoppRESTRequest {} else {resolvedReq.body = {contentType: urlParams.contentType,- body: urlParams.rawInput,+ body: urlParams.rawParams,}}}