Skip to content

Commit

Permalink
Adding client config to set request Content-Type to 'application/json'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Willis committed Jan 29, 2015
1 parent 3504956 commit db4940b
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 db4940b

Please sign in to comment.