Amazon.Runtime.Internal.Auth.AWS4Signer.CleanHeaders C# (CSharp) Method

CleanHeaders() private static method

private static CleanHeaders ( string>.IDictionary headers ) : void
headers string>.IDictionary
return void
        private static void CleanHeaders(IDictionary<string, string> headers)
        {
            headers.Remove(HeaderKeys.AuthorizationHeader);
            headers.Remove(HeaderKeys.XAmzContentSha256Header);

            if (headers.ContainsKey(HeaderKeys.XAmzDecodedContentLengthHeader))
            {
                headers[HeaderKeys.ContentLengthHeader] =
                    headers[HeaderKeys.XAmzDecodedContentLengthHeader];
                headers.Remove(HeaderKeys.XAmzDecodedContentLengthHeader);
            }
        }