Skip to content

Commit

Permalink
Fixing uri/query handling
Browse files Browse the repository at this point in the history
  • Loading branch information
EclipseGc committed Mar 7, 2019
1 parent 5b466ad commit 8887dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ContentHubClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -825,11 +825,11 @@ public static function getResponseJson(ResponseInterface $response)
public function __call($method, $args) {
try {
if (strpos($args[0], '?')) {
list($query, $uri) = explode('?', $args[0]);
list($uri, $query) = explode('?', $args[0]);
$parts = explode('/', $uri);
if ($query) {
$last = array_pop($parts);
$last .= $query;
$last .= "?$query";
$parts[] = $last;
}
}
Expand Down

0 comments on commit 8887dcf

Please sign in to comment.