internal override void AddHeaders(HttpHeaders sourceHeaders) { base.AddHeaders(sourceHeaders); HttpResponseHeaders sourceResponseHeaders = sourceHeaders as HttpResponseHeaders; Debug.Assert(sourceResponseHeaders != null); // Copy special values, but do not overwrite _generalHeaders.AddSpecialsFrom(sourceResponseHeaders._generalHeaders); }
internal override void AddHeaders(HttpHeaders sourceHeaders) { base.AddHeaders(sourceHeaders); HttpRequestHeaders sourceRequestHeaders = sourceHeaders as HttpRequestHeaders; Contract.Assert(sourceRequestHeaders != null); // Copy special values, but do not overwrite generalHeaders.AddSpecialsFrom(sourceRequestHeaders.generalHeaders); bool?expectContinue = ExpectContinue; if (!expectContinue.HasValue) { ExpectContinue = sourceRequestHeaders.ExpectContinue; } }