Skip to content

Commit

Permalink
Switch back to upstream php-restclient
Browse files Browse the repository at this point in the history
The bug it has can be avoided by not using `format`,,
which is already automatically detected by the response's Content-Type.
  • Loading branch information
shesek committed Nov 16, 2017
1 parent 708ead7 commit c4351aa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 27 deletions.
2 changes: 1 addition & 1 deletion client.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class LightningStrikeClient {
protected $api;

public function __construct($url) {
$this->api = new RestClient([ 'base_url' => rtrim($url, '/'), 'format' => 'json' ]);
$this->api = new RestClient([ 'base_url' => rtrim($url, '/') ]);
}

/**
Expand Down
6 changes: 1 addition & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
"name": "elementsproject/lightning-strike-client-php",
"description": "PHP client for the Lightning Strike REST API",
"license": "MIT",
"repositories": [{
"type": "vcs",
"url": "https://github.com/shesek/php-restclient.git"
}],
"require": {
"tcdent/php-restclient": "dev-master"
"tcdent/php-restclient": "^0.1"
},
"require-dev": {
"phpunit/phpunit": "^6.4",
Expand Down
37 changes: 16 additions & 21 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c4351aa

Please sign in to comment.