There is already a check for invalid method calls when the HTML Interface is disabled, but this commit adds a check to the standard path to verify that we only work with 'post' methods in cases where we are called with a non-get method on a valid function but with an invalid request method.
Fixes #9
There is already a check for invalid method calls when the HTML Interface is disabled, but this commit adds a check to the standard path to verify that we only work with 'post' methods in cases where we are called with a non-get method on a valid function but with an invalid request method.