Lint, ES6, popover for codegen

This commit is contained in:
Liyas Thomas
2020-10-19 18:02:42 +05:30
parent 59974edf80
commit eaeefafe39
12 changed files with 97 additions and 80 deletions

View File

@@ -17,7 +17,7 @@ export const ShellHTTPie = {
headers,
}) => {
const methodsWithBody = ["POST", "PUT", "PATCH", "DELETE"]
const includeBody = methodsWithBody.indexOf(method) >= 0
const includeBody = methodsWithBody.includes(method)
const requestString = []
let requestBody = rawInput ? rawParams : rawRequestBody