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

Code generation should set appropriate Content-type header #178

Open
n14s opened this issue Jul 25, 2024 · 1 comment
Open

Code generation should set appropriate Content-type header #178

n14s opened this issue Jul 25, 2024 · 1 comment

Comments

@n14s
Copy link
Contributor

n14s commented Jul 25, 2024

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
Copy link
Contributor

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.

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

No branches or pull requests

2 participants