Skip to content

Commit 3f4663f

Browse files
committed
Merge pull request kbsali#105 from mrbinr/master
Add trim() on response
2 parents eeafe13 + d5bdc07 commit 3f4663f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Redmine/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ protected function runRequest($path, $method = 'GET', $data = '')
395395
break;
396396
}
397397
/* @var $response boolean|string */
398-
$response = curl_exec($curl);
398+
$response = trim(curl_exec($curl));
399399
$this->responseCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
400400
$contentType = curl_getinfo($curl, CURLINFO_CONTENT_TYPE);
401401

0 commit comments

Comments
 (0)