Skip to content

Commit

Permalink
remove webserver
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Mar 9, 2020
1 parent 0fd2e46 commit 2f48a7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 330 deletions.
2 changes: 1 addition & 1 deletion Protocols/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static function encode($response, TcpConnection $connection)
$body_len = (int)\filesize($file);
$response->header('Content-Length', $body_len);
if ($body_len < 1024 * 1024) {
$connection->send((string)$response . file_get_contents($file, false, null, -1, $body_len), true);
$connection->send((string)$response . file_get_contents($file, false, null, 0, $body_len), true);
return '';
}
$handler = \fopen($file, 'r');
Expand Down
2 changes: 1 addition & 1 deletion Protocols/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ protected function parseGet()
*
* @return void
*/
public function parsePost()
protected function parsePost()
{
$body_buffer = $this->rawBody();
$this->_data['post'] = $this->_data['files'] = array();
Expand Down
328 changes: 0 additions & 328 deletions WebServer.php

This file was deleted.

0 comments on commit 2f48a7c

Please sign in to comment.