Open kylestev opened 7 years ago
The json option essentially does what the code is doing now (calling json_encode) along with setting the Content-Type header to application/json.
json
json_encode
Content-Type
application/json
This will automatically set the appropriate Content-Type header[1]
[1] http://docs.guzzlephp.org/en/stable/request-options.html#json
Style CI does not pass but I did resolve the issues in #11 if that is merged.
ping @kylestev
The
json
option essentially does what the code is doing now (callingjson_encode
) along with setting theContent-Type
header toapplication/json
.This will automatically set the appropriate Content-Type header[1]
[1] http://docs.guzzlephp.org/en/stable/request-options.html#json