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
@@ -490,9 +490,7 @@ public function renderRequestLine()
490490
public function toString()
491491
{
492492
$str = $this->renderRequestLine() . "\r\n";
493-
if ($this->headers) {
494-
$str .= $this->headers->toString();
495-
}
493+
$str .= $this->getHeaders()->toString();
496494
$str .= "\r\n";
497495
$str .= $this->getContent();
498496
return $str;

0 commit comments

Comments
 (0)