Skip to content

Commit

Permalink
Merge pull request #3489 from vanilla/hotfix/proxyrequest-responsebody
Browse files Browse the repository at this point in the history
Fix casening error in ProxyRequest
  • Loading branch information
linc committed Jan 25, 2016
2 parents f2a854a + 4fb186c commit 96fa914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/class.proxyrequest.php
Expand Up @@ -546,7 +546,7 @@ public function request($Options = null, $QueryParams = null, $Files = null, $Ex
// Add the response body to the log entry if it isn't too long or we are debugging.
$logResponseBody = val('LogResponseBody', $Options, null);
$logResponseBody = $logResponseBody === null ?
!in_array($RequestMethod, ['GET', 'OPTIONS']) && strlen($this->responseBody) < self::MAX_LOG_BODYLENGTH :
!in_array($RequestMethod, ['GET', 'OPTIONS']) && strlen($this->ResponseBody) < self::MAX_LOG_BODYLENGTH :
$logResponseBody;

if ($logResponseBody || debug() || (!$this->responseClass('2xx') && val('LogResponseErrorBody', $Options, true))) {
Expand Down

0 comments on commit 96fa914

Please sign in to comment.