"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "helpers/codegen/generators/python-http-client.js" between
hoppscotch-2.0.0.tar.gz and hoppscotch-2.1.0.tar.gz

About: Hoppscotch is a light-weight, web based API development suite.

python-http-client.js  (hoppscotch-2.0.0):python-http-client.js  (hoppscotch-2.1.0)
skipping to change at line 94 skipping to change at line 94
}) })
} }
if (formData.length) { if (formData.length) {
requestString.push(`payload = [${formData.join(",\n ")}]\n`) requestString.push(`payload = [${formData.join(",\n ")}]\n`)
} }
} else { } else {
requestString.push(`paylod = '''${requestBody}'''\n`) requestString.push(`paylod = '''${requestBody}'''\n`)
} }
} }
requestString.push( requestString.push(
`conn.request("${method}", "${pathName}${queryString}", payload, headers)\ n` `conn.request("${method}", "${pathName}?${queryString}", payload, headers) \n`
) )
requestString.push(`res = conn.getresponse()\n`) requestString.push(`res = conn.getresponse()\n`)
requestString.push(`data = res.read()\n`) requestString.push(`data = res.read()\n`)
requestString.push(`print(data.decode("utf-8"))`) requestString.push(`print(data.decode("utf-8"))`)
return requestString.join("") return requestString.join("")
}, },
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)