CodingAleCR / http_interceptor

A lightweight, simple plugin that allows you to intercept request and response objects and modify them if desired.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Put request is bugged

vlladislav45 opened this issue · comments

This interceptor doesn't works good with type put requests. I had to debug a several hours to understand why my request doesn't send. I think there is a problem with the post requests too but i'm not sure of one hundred percents, it has to be tested.

Hi, could you tell me what is it you are doing, the expected result and then the actual result?

@vlladislav45 If you are sending PUT request to PHP and expect to receive parameters, please be advised that there's a problem with PUT/PATCH requests in PHP where post data are not available in the server.

Hi, I've added params to all methods that were missing them, hopefully, that helps out. Other than that I'm still working on tests so that I can assure that it works as expected (only 34% is covered by tests), so thank you for the patience. In the meantime, it would help me out tremendously if you could help me answer these questions about your case:

  • Steps to reproduce the behavior
  • Flutter version: [e.g. 1.12.4]
  • IDE [e.g. VS Code, Android Studio]
  • http_interceptor Version [e.g. 0.3.3]

Thank you!

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.