webhook icon indicating copy to clipboard operation
webhook copied to clipboard

Update WebhookChannel to use the json request option in Guzzle

Open kylestev opened this issue 7 years ago • 2 comments

The json option essentially does what the code is doing now (calling json_encode) along with setting the Content-Type header to application/json.


This will automatically set the appropriate Content-Type header[1]

[1] http://docs.guzzlephp.org/en/stable/request-options.html#json

kylestev avatar Sep 03 '17 09:09 kylestev

Style CI does not pass but I did resolve the issues in #11 if that is merged.

kylestev avatar Sep 03 '17 09:09 kylestev

ping @kylestev

atymic avatar Nov 06 '19 05:11 atymic