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

Commit fc89677

Browse files
author
tr
committed
moved path check to http by overriding parse method
1 parent 9af152f commit fc89677

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Client/Adapter/Socket.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,6 @@ public function write($method, $uri, $http_ver = '1.1', $headers = array(), $bod
253253

254254
// Build request headers
255255
$path = $uri->getPath();
256-
if (strlen($path) === 0){
257-
$path = '/';
258-
}
259256
if ($uri->getQuery()) $path .= '?' . $uri->getQuery();
260257
$request = "{$method} {$path} HTTP/{$http_ver}\r\n";
261258
foreach ($headers as $k => $v) {

0 commit comments

Comments
 (0)