1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 18:43:22 +01:00

Fixing JSON visitor to add content-type when needed. Closes #200

This commit is contained in:
Michael Dowling 2013-01-08 14:46:37 -08:00
parent a2e051ce52
commit 8da4aabb2e

View File

@ -14,7 +14,7 @@ class JsonVisitor extends AbstractRequestVisitor
/**
* @var bool Whether or not to add a Content-Type header when JSON is found
*/
protected $jsonContentType = null;
protected $jsonContentType = 'application/json';
/**
* @var \SplObjectStorage Data object for persisting JSON data