Fix #815
Merge pull request #816 from untitaker/allowed_methods

Fix #815