When setting content type, ’ charset=UTF-8’ is automatically appended when submitting the request.
I have tried via setHeader():
$request = new Client()->createRequest()->setHeaders(['Content-type' => 'application/json']);
Have also tried via setOption:
$request = new Client()->createRequest()->setOptions([ CURLOPT_HTTPHEADER => ['Content-Type: application/json' ] ]);
When view in debug, the content type is
Content-Type: application/json; charset=UTF-8
Is there an option to exclude the encoding string from appending to content-type?