chore: update 'post' method usages to be uppercased as per HTTP spec
This commit is contained in:
@@ -149,7 +149,7 @@ export class GQLConnection {
|
||||
.forEach((x) => (finalHeaders[x.key] = x.value))
|
||||
|
||||
const reqOptions = {
|
||||
method: "post",
|
||||
method: "POST",
|
||||
url,
|
||||
headers: {
|
||||
...finalHeaders,
|
||||
@@ -213,7 +213,7 @@ export class GQLConnection {
|
||||
.forEach(({ key, value }) => (finalHeaders[key] = value))
|
||||
|
||||
const reqOptions = {
|
||||
method: "post",
|
||||
method: "POST",
|
||||
url,
|
||||
headers: {
|
||||
...finalHeaders,
|
||||
|
||||
@@ -50,7 +50,7 @@ const getMethodByDeduction = (parsedArguments: parser.Arguments) => {
|
||||
R.or(objHasArrayProperty("F", "string"))
|
||||
)(parsedArguments)
|
||||
)
|
||||
return O.some("post")
|
||||
return O.some("POST")
|
||||
else return O.none
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ const sendPostRequest = async (url, params) => {
|
||||
.map((key) => `${key}=${params[key]}`)
|
||||
.join("&")
|
||||
const options = {
|
||||
method: "post",
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-type": "application/x-www-form-urlencoded; charset=UTF-8",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user