Skip to content

Http\Concerns\InteractsWithContentType expectJson check fails for multiple accept options #33389

Answered by taylorotwell
muisit asked this question in General
Discussion options

You must be logged in to vote

expectsJson specifically checks if application/json is the FIRST requested content-type. However, the acceptsJson method sounds more like what you want. It determines if JSON is accepted at all.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by muisit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #33389 on June 30, 2020 13:33.