Skip to content

Commit f6a6494

Browse files
Removed unnecessary content length parameter on Connection::write calls
1 parent 6d068f4 commit f6a6494

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ConnectionHandler/ConnectionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ protected function writeRecord($requestId, $type, $content = null)
167167

168168
$headerData = pack('CCnnxx', DaemonInterface::FCGI_VERSION_1, $type, $requestId, $contentLength);
169169

170-
$this->connection->write($headerData, 8);
170+
$this->connection->write($headerData);
171171

172172
if (null !== $content) {
173-
$this->connection->write($content, $contentLength);
173+
$this->connection->write($content);
174174
}
175175
}
176176

0 commit comments

Comments
 (0)