Skip to content

Commit

Permalink
fixes logging request method
Browse files Browse the repository at this point in the history
  • Loading branch information
nojimage committed Mar 15, 2012
1 parent 48ac775 commit 386f68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Datasource/RestSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,14 @@ public function logRequest($request, $response) {
$responseBody = substr_replace($responseBody, $separator, $maxlength / 2, strlen($responseBody) - $maxlength);
}
$this->_requestLog[] = array(
'request_method' => $request['method'],
'request_method' => $this->Http->request['method'],
'request_uri' => $requestUri,
'request_body' => h($requestBody),
'response_code' => $this->Http->response['status']['code'],
'response_type' => $this->Http->response['header']['Content-Type'],
'response_size' => strlen($this->Http->response['body']),
'response_body' => h($responseBody),
'query' => $request['method'] . ' ' . $requestUri,
'query' => $this->Http->request['method'] . ' ' . $requestUri,
'params' => '',
'error' => '',
'affected' => '',
Expand Down

0 comments on commit 386f68d

Please sign in to comment.