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

fix(http): prevent POST request from being proxied #7395

Merged
merged 5 commits into from
Apr 15, 2024
Merged

Conversation

jcesarmobile
Copy link
Member

In some cases options?.method is undefined for POST requests, so the request is being proxied, but the proxy can't handle POST data, so the data is lost.

Instead of checking options?.method, check the request's method, which seems to always be defined.

closes #7391

@giralte-ionic giralte-ionic merged commit 7b8c352 into main Apr 15, 2024
6 checks passed
@giralte-ionic giralte-ionic deleted the RDMR-91 branch April 15, 2024 14:43
jcesarmobile added a commit that referenced this pull request Apr 15, 2024
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

Successfully merging this pull request may close these issues.

[Bug]: Capacitor HTTP Plugin Post request not working
4 participants