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

Commit

Permalink
moved path check to http by overriding parse method
Browse files Browse the repository at this point in the history
  • Loading branch information
tr committed Aug 4, 2012
1 parent 9af152f commit fc89677
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Client/Adapter/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc89677

Please sign in to comment.