Snippets

Winni Neessen Patched HttpClient.php

Created by Winni Neessen
<?php
[...]
preg_match( '#^HTTP/1.\d (\d{3}) ?#', $h, $m );
if ( count( $m ) != 2 ) {
    AimySitemapLogger::debug( "Crawl: HTTP HEAD response: [$s]" );
    AimySitemapLogger::debug( "Crawl: parse_head failed: [$h]" );
    throw new RuntimeException( 'Failed to parse head: status code not found', self::MSG_PARSE_HTTP ); 
}
[...]
?>

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.