We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b766978 commit b8131bfCopy full SHA for b8131bf
src/Qcloud/Cos/ExceptionParser.php
@@ -64,7 +64,7 @@ protected function parseHeaders(RequestInterface $request, Response $response, a
64
} elseif ($method === 'HEAD' && $status === 404) {
65
$path = explode('/', trim($request->getPath(), '/'));
66
$host = explode('.', $request->getHost());
67
- $bucket = (count($host) === 4) ? $host[0] : array_shift($path);
+ $bucket = (count($host) >= 4) ? $host[0] : array_shift($path);
68
$object = array_shift($path);
69
70
if ($bucket && $object) {
0 commit comments