Skip to content

Commit

Permalink
fix: always send the content-type header (#20)
Browse files Browse the repository at this point in the history
* fix: always send the content-type header

* chore: 0.1.4 changelog
  • Loading branch information
faustbrian committed Nov 23, 2018
1 parent 17cbd9e commit 7b81bb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## Unreleased

## 0.1.4 - 2018-11-23

### Changed:

- Always send the `Content-Type` header

## 0.1.3 - 2018-10-31

### Fixed:
Expand Down
1 change: 1 addition & 0 deletions src/Connection.php
Expand Up @@ -58,6 +58,7 @@ public function __construct(array $config, Builder $httpClientBuilder = null)
$this->httpClientBuilder->addPlugin(new Plugin\BaseUriPlugin(UriFactoryDiscovery::find()->createUri($config['host'])));
$this->httpClientBuilder->addPlugin(new Plugin\HeaderDefaultsPlugin([
'User-Agent' => 'ark-php-client (https://github.com/ArkEcosystem/php-client)',
'Content-Type' => 'application/json'
]));

$this->httpClientBuilder->addHeaderValue('API-Version', $config['version']);
Expand Down

0 comments on commit 7b81bb6

Please sign in to comment.