Skip to content

Commit b147887

Browse files
Fix wrong method name
1 parent d080d4f commit b147887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/slicer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
urlReq = this.BASE_URL + objRequest.path;
424424
}
425425
let requestMethods = ["POST", "PUT", "GET", "DELETE", "PATCH"];
426-
if (requestMethods.insertOf(objRequest.reqType) === -1){
426+
if (requestMethods.indexOf(objRequest.reqType) === -1){
427427
throw new errors.InvalidMethodRequestError('This method request is invalid.');
428428
}
429429
let req = this.requester.run(

0 commit comments

Comments
 (0)