Skip to content

Add application/json content type header#19

Open
Sladix wants to merge 1 commit into
pestphp:2.xfrom
Sladix:patch-2
Open

Add application/json content type header#19
Sladix wants to merge 1 commit into
pestphp:2.xfrom
Sladix:patch-2

Conversation

@Sladix
Copy link
Copy Markdown

@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
Copy Markdown

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
Copy Markdown

SparkLee commented Mar 15, 2024

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

@nahime0
Copy link
Copy Markdown
Contributor

nahime0 commented Mar 15, 2024

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

@ihorchepurnyi
Copy link
Copy Markdown

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