light-my-request icon indicating copy to clipboard operation
light-my-request copied to clipboard

It is necessary that the headers: user-agent and content-type could not be filled in automatically when setting the flag in the settings

Open budarin opened this issue 3 years ago • 2 comments
trafficstars

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Many tools, such as curl, do not automatically fill in these parameters, so during testing of services it is necessary to disable the automatic filling of these headers in order to test the response of the service to their absence.

curl -X POST http://localhost:3000/route --body "{}"

I suggest adding a parameter to the settings that would regulate this behavior

budarin avatar Aug 16 '22 08:08 budarin

Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.

mcollina avatar Aug 16 '22 08:08 mcollina

I'll try

budarin avatar Aug 16 '22 09:08 budarin