Lint, ES6, popover for codegen
This commit is contained in:
@@ -66,7 +66,7 @@ export const PythonRequestsCodegen = {
|
||||
requestString.push(`data = ${requestBody}\n`)
|
||||
} else if (contentType.includes("x-www-form-urlencoded")) {
|
||||
const formData = []
|
||||
if (requestBody.indexOf("=") > -1) {
|
||||
if (requestBody.includes("=")) {
|
||||
requestBody.split("&").forEach((rq) => {
|
||||
const [key, val] = rq.split("=")
|
||||
formData.push(`('${key}', '${val}')`)
|
||||
|
||||
Reference in New Issue
Block a user