JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrgetName() !== 'GetBucketLocation') { return $result; } static $location = 'us-east-1'; static $pattern = '/>(.+?)<\/LocationConstraint>/'; if (preg_match($pattern, $response->getBody(), $matches)) { $location = $matches[1] === 'EU' ? 'eu-west-1' : $matches[1]; } $result['LocationConstraint'] = $location; $response->getBody()->rewind(); return $result; } }