Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2022-08-17 00:08:15 -05:00
commit ea94a73380
1 changed files with 5 additions and 1 deletions

View File

@ -1130,7 +1130,11 @@ class X509
if (!$fsock) {
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");
$line = fgets($fsock, 1024);
if (strlen($line) < 3) {