Skip to content

Commit

Permalink
Merge pull request #108 from paymill/correct_csv_http_header
Browse files Browse the repository at this point in the history
Allow charset in response header when requesting csv
  • Loading branch information
tschelabaumann committed Sep 24, 2015
2 parents 555bf66 + 332b3c7 commit 1110880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Paymill/API/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function requestApi($action = '', $params = array(), $method = 'POST')

if ('application/json' === $responseInfo['content_type']) {
$responseBody = json_decode($responseBody, true);
} elseif('text/csv' === $responseInfo['content_type']
} elseif (strpos(strtolower($responseInfo['content_type']), 'text/csv') !== false
&& !isset($responseBody['error'])
) {
return $responseBody;
Expand Down

0 comments on commit 1110880

Please sign in to comment.