Skip to content

Commit 7b81bb6

Browse files
authored
fix: always send the content-type header (#20)
* fix: always send the content-type header * chore: 0.1.4 changelog
1 parent 17cbd9e commit 7b81bb6

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## Unreleased
99

10+
## 0.1.4 - 2018-11-23
11+
12+
### Changed:
13+
14+
- Always send the `Content-Type` header
15+
1016
## 0.1.3 - 2018-10-31
1117

1218
### Fixed:

src/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public function __construct(array $config, Builder $httpClientBuilder = null)
5858
$this->httpClientBuilder->addPlugin(new Plugin\BaseUriPlugin(UriFactoryDiscovery::find()->createUri($config['host'])));
5959
$this->httpClientBuilder->addPlugin(new Plugin\HeaderDefaultsPlugin([
6060
'User-Agent' => 'ark-php-client (https://github.com/ArkEcosystem/php-client)',
61+
'Content-Type' => 'application/json'
6162
]));
6263

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

0 commit comments

Comments
 (0)