From fc89677e4e818c5baf4cacb3118e848760fb02c2 Mon Sep 17 00:00:00 2001 From: tr Date: Sat, 4 Aug 2012 15:31:14 +0100 Subject: [PATCH] moved path check to http by overriding parse method --- src/Client/Adapter/Socket.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Client/Adapter/Socket.php b/src/Client/Adapter/Socket.php index 131770d90b..51c22166f8 100644 --- a/src/Client/Adapter/Socket.php +++ b/src/Client/Adapter/Socket.php @@ -253,9 +253,6 @@ public function write($method, $uri, $http_ver = '1.1', $headers = array(), $bod // Build request headers $path = $uri->getPath(); - if (strlen($path) === 0){ - $path = '/'; - } if ($uri->getQuery()) $path .= '?' . $uri->getQuery(); $request = "{$method} {$path} HTTP/{$http_ver}\r\n"; foreach ($headers as $k => $v) {