private static function acsHeaderString()

in src/Support/Sign.php [27:43]


    private static function acsHeaderString(array $headers)
    {
        $array = [];
        foreach ($headers as $headerKey => $headerValue) {
            $key = strtolower($headerKey);
            if (strncmp($key, 'x-acs-', 6) === 0) {
                $array[$key] = $headerValue;
            }
        }
        ksort($array);
        $string = '';
        foreach ($array as $sortMapKey => $sortMapValue) {
            $string .= $sortMapKey . ':' . $sortMapValue[0] . self::$headerSeparator;
        }

        return $string;
    }