Skip to content

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