Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Request.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,9 +501,7 @@ public function renderRequestLine()
501501
public function toString()
502502
{
503503
$str = $this->renderRequestLine() . "\r\n";
504-
if ($this->headers) {
505-
$str .= $this->headers->toString();
506-
}
504+
$str .= $this->getHeaders()->toString();
507505
$str .= "\r\n";
508506
$str .= $this->getContent();
509507
return $str;

0 commit comments

Comments
 (0)