Skip to content

Commit

Permalink
Bugfix wrong header
Browse files Browse the repository at this point in the history
Bugfix wrong header
  • Loading branch information
ad3n authored May 31, 2017
1 parent a264dac commit ef79b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ public function delete($url, array $options = [])
if ($token = $this->fetch('token')) {
$this->bearer($token);
}
$this->addHeader('Content-Type', 'application/ld+json');
$this->addHeader('Accept', 'application/ld+json');
$this->addHeader('Content-Type', 'application/json');
$this->addHeader('Accept', 'application/json');

try {
$response = $this->request->delete(sprintf('%s.json?%s', $this->getRealUrl($url), http_build_query(array_merge([$this->paramKey => $this->apiKey], $options))), [
Expand Down

0 comments on commit ef79b49

Please sign in to comment.