@@ -43,13 +43,13 @@ |
||
| 43 | 43 | $req .= 'Content-Length: ' . strlen($requestBody) . "\r\n"; |
| 44 | 44 | $req .= 'Connection: close' . "\r\n\r\n"; |
| 45 | 45 | |
| 46 | - $socket = stream_socket_client($protocol . $url . ':' . $port,$err, $errstr, 60, STREAM_CLIENT_CONNECT); |
|
| 46 | + $socket = stream_socket_client($protocol . $url . ':' . $port, $err, $errstr, 60, STREAM_CLIENT_CONNECT); |
|
| 47 | 47 | |
| 48 | 48 | fputs($socket, $req); |
| 49 | 49 | |
| 50 | 50 | $res = ''; |
| 51 | 51 | |
| 52 | - while(!feof($socket)) { $res .= fgets($socket, 128); } |
|
| 52 | + while (!feof($socket)) { $res .= fgets($socket, 128); } |
|
| 53 | 53 | fclose($socket); |
| 54 | 54 | |
| 55 | 55 | $this->response = $res; |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | - $path = str_replace('//' , '/', $path); |
|
| 70 | + $path = str_replace('//', '/', $path); |
|
| 71 | 71 | |
| 72 | 72 | if ($absolute) { |
| 73 | 73 | |