Open
Description
Hello,
I'm using response()->preferredFormat()
. Sometimes I like to get xml or json, depending on the Accept header.
If I don't set the Accept header, my API will return JSON (which is fine) However the content-type isn't set in that case.
How can I set the default content-type to application/json in case I didn't provide the Accept header?
I think we can set it to JSON here:
Roy
Metadata
Metadata
Assignees
Labels
No labels