Skip to content

Commit

Permalink
Removed unnecessary redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
psuet authored and luto committed Aug 10, 2018
1 parent 668e9db commit 1a81a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Netboximport/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private function apiRequest($method, $url, $get_params) {
$get_params['limit'] = 1000000;

$query = http_build_query($get_params);
curl_setopt($ch, CURLOPT_URL, $this->baseurl . ltrim($url, '/') . '?' . $query);
curl_setopt($ch, CURLOPT_URL, $this->baseurl . trim($url, '/') . '/?' . $query);

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Token ' . $this->apitoken,
Expand Down

0 comments on commit 1a81a38

Please sign in to comment.