Skip to content

Commit 1aeba3e

Browse files
author
Daniel Chesterton
committed
Merge pull request #13 from vend/force-content-type
Adding client config to set request Content-Type to 'application/json'.
2 parents 3504956 + db4940b commit 1aeba3e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static function factory($config = array())
7171
$client = new self($restUrl, $config);
7272
$client->addSubscriber($auth);
7373
$client->setDescription(ServiceDescription::factory(__DIR__ . '/service.json'));
74+
$client->setDefaultOption('headers/Content-Type', 'application/json');
7475

7576
return $client;
7677
}

0 commit comments

Comments
 (0)