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

Http method 'patch' fails with rest_oauth1_unknown_http_method #199

Open
drsdre opened this issue Jan 31, 2017 · 0 comments
Open

Http method 'patch' fails with rest_oauth1_unknown_http_method #199

drsdre opened this issue Jan 31, 2017 · 0 comments

Comments

@drsdre
Copy link

drsdre commented Jan 31, 2017

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 #198

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