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

Add application/json content type header #19

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

Sladix
Copy link

@Sladix Sladix commented Feb 22, 2024

As per the the documentation we should specify the application/json content type header.

As per the the [documentation](https://grafana.com/docs/k6/latest/javascript-api/k6-http/post/) we should specify the application/json content type header.
@SparkLee SparkLee mentioned this pull request Mar 15, 2024
@SparkLee
Copy link

Good job, It’s indeed necessary to add the ‘application/json’ content type header. For example, in the framework I use (Hyperf), only when the Content-Type header value is correctly set to ‘application/json’ can the JSON data in the request body be accessed and retrieved through the input(string key,key,default = null) method.

@SparkLee
Copy link

SparkLee commented Mar 15, 2024

@nunomaduro @nahime0 Could u merge this pr please, I really need it.

@nahime0
Copy link
Collaborator

nahime0 commented Mar 15, 2024

Let's wait @nunomaduro on this. For me it's fine to merge it.

@ihorchepurnyi
Copy link

Hello everyone, I’m wondering if there are any updates on when this PR might be merged?

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

Successfully merging this pull request may close these issues.

4 participants