Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
sqmk authored Dec 1, 2017
2 parents 38a9e84 + e97bbf7 commit ca0975c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Software License Agreement (The BSD 3-Clause License)

Copyright (c) 2012, Michael K. Squires
Copyright (c) 2017, Michael K. Squires
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
2 changes: 1 addition & 1 deletion library/Phue/Transport/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ protected function getJsonResponse($address, $method = self::METHOD_GET, \stdCla
$contentType = $this->getAdapter()->getContentType();

// Throw connection exception if status code isn't 200 or wrong content type
if ($status != 200 || $contentType != 'application/json') {
if ($status != 200 || explode(';', $contentType)[0] != 'application/json') {
throw new ConnectionException('Connection failure');
}

Expand Down

0 comments on commit ca0975c

Please sign in to comment.