mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-03 10:08:04 +01:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
cf6ff7dad0
@ -2164,7 +2164,11 @@ class X509
|
|||||||
if (!$fsock) {
|
if (!$fsock) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
fputs($fsock, "GET $parts[path] HTTP/1.0\r\n");
|
$path = $parts['path'];
|
||||||
|
if (isset($parts['query'])) {
|
||||||
|
$path.= '?' . $parts['query'];
|
||||||
|
}
|
||||||
|
fputs($fsock, "GET $path HTTP/1.0\r\n");
|
||||||
fputs($fsock, "Host: $parts[host]\r\n\r\n");
|
fputs($fsock, "Host: $parts[host]\r\n\r\n");
|
||||||
$line = fgets($fsock, 1024);
|
$line = fgets($fsock, 1024);
|
||||||
if (strlen($line) < 3) {
|
if (strlen($line) < 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user