// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. using System.IO; namespace System.Net.Http.Internal { /// /// Stream that doesn't close the inner stream when closed. This is to work around a limitation /// in the insisting of closing the inner stream. /// The regular does allow for not closing the inner stream but that /// doesn't have the quota that we need for security reasons. Implementations of /// /// should not close the input stream when reading or writing so hence this workaround. /// internal class NonClosingDelegatingStream : DelegatingStream { public NonClosingDelegatingStream(Stream innerStream) : base(innerStream) { } public override void Close() { } } }