OAuth1
OAuth1 copied to clipboard
Http method 'patch' fails with rest_oauth1_unknown_http_method
I'm using the Rest API with oAuth1 outside the Wordpress environment. Unfortunately it kept failing on a 'patch' request with error rest_oauth1_unknown_http_method.
As far as I have been able to test, the only missing piece of code missing is in check_oauth_signature (class-wp-rest-oauth1.php) to recognize 'patch' to use the post params. I've patched this in pull request https://github.com/WP-API/OAuth1/pull/198