// no content it'll be cheap. :)
$request = self::_commonHttp($short_url, $redirs);
$response = $request->send();
+ } elseif (400 == $response->getStatus()) {
+ throw new Exception('Got error 400 on HEAD request, will not go further.');
}
} catch (Exception $e) {
// Invalid URL or failure to reach server
// don't touch anything
break;
+ // URLs with coordinates, not browsable domain names
+ case 'geo':
+ // don't touch anything
+ break;
+
default:
$out_url = $default_scheme . ltrim($out_url, '/');
$p = parse_url($out_url);
return $this->file;
}
-}
\ No newline at end of file
+}