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

Raw input disabled is not working properly #394

Closed
elangosundar opened this issue Dec 3, 2019 · 3 comments
Closed

Raw input disabled is not working properly #394

elangosundar opened this issue Dec 3, 2019 · 3 comments
Assignees
Labels
need information Requires more info

Comments

@elangosundar
Copy link

elangosundar commented Dec 3, 2019

Describe the bug
Raw input disabled is not working properly

To Reproduce
Steps to reproduce the behavior:

  1. To make the api request by using POST methods via RAW INPUT.
  2. Checking the POST api results, it should works as expected.
  3. Now disable the RAW INPUT and will make the GET Request.
  4. Still RAW INPUTS are passing in GET methods and even if RAW INPUTS disabled also.
    Please fix this issue.

Expected behavior
If RAW INPUTS is disabled, it should not pass in API request

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [Ubuntu16.04]
  • Browser [Chrome]
  • Version []
@liyasthomas
Copy link
Member

Still RAW INPUTS are passing in GET methods and even if RAW INPUTS disabled also.
Please fix this issue.

I couldn't reproduce this issue. GET doesn't pass raw payload in request.

@liyasthomas liyasthomas self-assigned this Dec 3, 2019
@liyasthomas liyasthomas added the need information Requires more info label Dec 3, 2019
@elangosundar
Copy link
Author

@liyasthomas can you tried the above reproduce steps.

It is simple ,
you add some raw data in POST method and just on/off the raw input after that you will change method as GET method, now you will check above request parmas.

@liyasthomas
Copy link
Member

liyasthomas commented Dec 4, 2019

That's a feature. Actually when you disable the raw input or changed to any other method, payload is stored to the app's state so it could be used next time.

Think of this as: You send a POST request with some payload and have to check it's GET response. So you switched to GET and send another request. Now, if we clear the POST payload, you've to type in all payload again since it is not in app's memory anymore. This is why payload is preserved for using next time.

And don't worry, GET requests won't send payload. It's just for saving the state in your localStorage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need information Requires more info
Projects
None yet
Development

No branches or pull requests

2 participants