Skip to content

Commit

Permalink
Merge pull request #13 from vend/force-content-type
Browse files Browse the repository at this point in the history
Adding client config to set request Content-Type to 'application/json'.
  • Loading branch information
dchesterton committed Feb 3, 2015
2 parents 3504956 + db4940b commit 1aeba3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public static function factory($config = array())
$client = new self($restUrl, $config);
$client->addSubscriber($auth);
$client->setDescription(ServiceDescription::factory(__DIR__ . '/service.json'));
$client->setDefaultOption('headers/Content-Type', 'application/json');

return $client;
}
Expand Down

0 comments on commit 1aeba3e

Please sign in to comment.