Skip to content

Commit

Permalink
Update to latest Guzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
Jleagle committed Sep 3, 2015
1 parent 4c51cd0 commit 162e3dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "jleagle/sick-beard-api-client",
"keywords": [
"name": "jleagle/sick-beard-api-client",
"keywords": [
"sick beard",
"sickbeard",
"api",
"client"
],
"description": "A wrapper class for the Sick Beard API.",
"authors": [
"authors": [
{
"name": "James Eagle",
"email": "jimeagle@gmail.com",
"name": "James Eagle",
"email": "jimeagle@gmail.com",
"homepage": "http://jimeagle.com",
"role": "Developer"
"role": "Developer"
}
],
"autoload": {
"autoload": {
"psr-4": {
"Jleagle\\SickBeard\\": "src"
}
},
"require": {
"php": ">=5.4",
"guzzlehttp/guzzle": "~5.2"
"require": {
"php": ">=5.4",
"guzzlehttp/guzzle": "~6.0"
}
}
4 changes: 2 additions & 2 deletions src/SickBeard.php
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ protected function _request($params)
$body = $response->getBody();
$contentType = $response->getHeader('content-type');

if(strpos($contentType, 'json') !== false)
if(strpos($contentType[0], 'json') !== false)
{
$array = json_decode($body, true);

Expand All @@ -776,7 +776,7 @@ protected function _request($params)
}
else
{
header('Content-Type: ' . $contentType);
header('Content-Type: ' . $contentType[0]);
return $body;
}
}
Expand Down

0 comments on commit 162e3dd

Please sign in to comment.