fix: typo
This commit is contained in:
@@ -54,7 +54,7 @@ function parseV0ExtURL(urlParams: Record<string, any>): HoppRESTRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (urlParams.contentType) {
|
if (urlParams.contentType) {
|
||||||
if (urlParams.contentType === "multipart/formdata") {
|
if (urlParams.contentType === "multipart/form-data") {
|
||||||
resolvedReq.body = {
|
resolvedReq.body = {
|
||||||
contentType: "multipart/form-data",
|
contentType: "multipart/form-data",
|
||||||
body: JSON.parse(urlParams.bodyParams || "[]").map(
|
body: JSON.parse(urlParams.bodyParams || "[]").map(
|
||||||
@@ -68,10 +68,10 @@ function parseV0ExtURL(urlParams: Record<string, any>): HoppRESTRequest {
|
|||||||
),
|
),
|
||||||
}
|
}
|
||||||
} else if (isJSONContentType(urlParams.contentType)) {
|
} else if (isJSONContentType(urlParams.contentType)) {
|
||||||
if (urlParams.rawInput) {
|
if (urlParams.rawParams) {
|
||||||
resolvedReq.body = {
|
resolvedReq.body = {
|
||||||
contentType: urlParams.contentType,
|
contentType: urlParams.contentType,
|
||||||
body: urlParams.rawInput,
|
body: urlParams.rawParams,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
resolvedReq.body = {
|
resolvedReq.body = {
|
||||||
@@ -82,7 +82,7 @@ function parseV0ExtURL(urlParams: Record<string, any>): HoppRESTRequest {
|
|||||||
} else {
|
} else {
|
||||||
resolvedReq.body = {
|
resolvedReq.body = {
|
||||||
contentType: urlParams.contentType,
|
contentType: urlParams.contentType,
|
||||||
body: urlParams.rawInput,
|
body: urlParams.rawParams,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user