ocd
This commit is contained in:
parent
024b490749
commit
1d9a0e1d31
1 changed files with 2 additions and 2 deletions
|
@ -259,8 +259,8 @@ module.exports = {
|
|||
*/
|
||||
|
||||
get idempotent() {
|
||||
var idempotents = ['GET','HEAD','PUT','DELETE','OPTIONS','TRACE'];
|
||||
return idempotents.indexOf(this.method) !== -1;
|
||||
var methods = ['GET', 'HEAD', 'PUT', 'DELETE', 'OPTIONS', 'TRACE'];
|
||||
return ~methods.indexOf(this.method);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue