Skip to content

Commit

Permalink
Insignificant fix in hquery.php
Browse files Browse the repository at this point in the history
  • Loading branch information
duzun committed Oct 8, 2020
1 parent 08b4c7c commit e25407e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions hquery.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
*/

// ------------------------------------------------------------------------
class_exists('duzun\\hQuery\\Parser' , false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Parser.php';
class_exists('duzun\\hQuery\\Parser\\Selector' , false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Parser' . DIRECTORY_SEPARATOR . 'Selector.php';
class_exists('duzun\\hQuery\\Parser\\HTMLSelector', false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Parser' . DIRECTORY_SEPARATOR . 'HTML.php';
class_exists('duzun\\hQuery\\Parser' , false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Parser.php';
class_exists('duzun\\hQuery\\Parser\\Selector', false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Parser' . DIRECTORY_SEPARATOR . 'Selector.php';
class_exists('duzun\\hQuery\\Parser\\HTML' , false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Parser' . DIRECTORY_SEPARATOR . 'HTML.php';

class_exists('duzun\\hQuery\\Node' , false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Node.php';
class_exists('duzun\\hQuery\\Element' , false) or require_once __DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'hQuery' . DIRECTORY_SEPARATOR . 'Element.php';
Expand Down
2 changes: 1 addition & 1 deletion src/hQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ public static function http_wr($host, $head = null, $body = null, $options = nul
}

$h = explode("\r\n", rtrim($rsps));
list($rprot, $rcode, $rmsg) = explode(' ', array_shift($h), 3);
@list($rprot, $rcode, $rmsg) = explode(' ', array_shift($h), 3);
foreach ($h as $v) {
$v = explode(':', $v, 2);
$k = strtoupper(strtr($v[0], '- ', '__'));
Expand Down

0 comments on commit e25407e

Please sign in to comment.