Skip to content

Commit d81590a

Browse files
author
Phil Sturgeon
committed
Fixed debug display of last response.
1 parent b69b9d8 commit d81590a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/Curl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ public function execute()
318318
else
319319
{
320320
curl_close($this->session);
321-
$response = $this->response;
321+
$this->last_response = $this->response;
322322
$this->set_defaults();
323-
return $response;
323+
return $this->last_response;
324324
}
325325
}
326326

@@ -335,7 +335,7 @@ public function debug()
335335
echo "<h2>CURL Test</h2>\n";
336336
echo "=============================================<br/>\n";
337337
echo "<h3>Response</h3>\n";
338-
echo "<code>" . nl2br(htmlentities($this->response)) . "</code><br/>\n\n";
338+
echo "<code>" . nl2br(htmlentities($this->last_response)) . "</code><br/>\n\n";
339339

340340
if ($this->error_string)
341341
{

0 commit comments

Comments
 (0)