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:
parent
a2e051ce52
commit
8da4aabb2e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user