Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

method提供DELETE #56

Open
xinglie opened this issue Feb 17, 2016 · 0 comments
Open

method提供DELETE #56

xinglie opened this issue Feb 17, 2016 · 0 comments

Comments

@xinglie
Copy link

xinglie commented Feb 17, 2016

看到之前有修复过PUT的bug,今天在项目中使用DELETE时,发现不能正常工作,代码修改如下后可以工作:

isContainBodyData: function(method){
    if (!method){
      return false;
    }

    var white_list = ['POST', 'PUT','DELETE'];
    return white_list.some(function(i){
      return i === method;
    });
  }

试着增加了DELETE,请作者看下此处是否应增加更多的method支持?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant