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