protected function fixHeaders(array $headers)
    {
        $fixedHeaders = array();

        foreach ($headers as $key => $value) {
            if (is_int($key)) {
                $fixedHeaders[] = $value;
            } else {
                $fixedHeaders[] = sprintf('%s:%s', $key, $value);
            }
        }

        return $fixedHeaders;
    }
protected function fixHeaders(array $headers)
    {
        $fixedHeaders = array();

        foreach ($headers as $key => $value) {
            if (is_int($key)) {
                $fixedHeaders[] = $value;
            } else {
                $fixedHeaders[] = sprintf('%s:%s', $key, $value);
            }
        }

        return $fixedHeaders;
    }
protected function fixHeaders ( array $ headers ) { $ fixedHeaders = array ( ) ; foreach ( $ headers as $ key => $ value ) { if ( is_int ( $ key ) ) { $ fixedHeaders [ ] = $ value ; } else { $ fixedHeaders [ ] = sprintf ( '%s:%s' , $ key , $ value ) ; } } return $ fixedHeaders ; }
Fixes the headers to match the http format.

@param array $headers The headers.

@return array The fixes headers.
Fixes the headers to match the http format .