EsperoTech / yaade

Yaade is an open-source, self-hosted, collaborative API development environment.
MIT License
1.6k stars 70 forks source link

Code generation should set appropriate Content-type header #178

Open n14s opened 3 months ago

n14s commented 3 months ago

When sending a request through yaade, the Contest-type header is automatically set, at least in case of application/json. The generated code should also include the Content-type header, otherwise a command eg. shell wget might fail with an error of a missing Contest-type header.

jonrosner commented 3 months ago

we don't set automatic headers. You can always set the header in the "body" tab by clicking "Set Header" next to the content type dropdown.