Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
annelo-msft committed Jan 9, 2024
commit e5d58fec9bc066e3257ac70d36d1f356ed47ee41
10 changes: 3 additions & 7 deletions sdk/core/System.ClientModel/src/Message/PipelineResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public virtual Stream? ContentStream
set => _contentStream = value;
}

#region Meta-data properties set by the pipeline.

public virtual BinaryData Content
{
get
Expand Down Expand Up @@ -91,8 +89,6 @@ public virtual BinaryData Content

internal bool IsBuffered { get; private set; }

#endregion

public abstract void Dispose();

#region Response Buffering
Expand All @@ -107,7 +103,7 @@ internal void BufferContent(TimeSpan? timeout = default, CancellationTokenSource
return;
}

Stream? responseContentStream = _contentStream;
Stream? responseContentStream = ContentStream;
if (responseContentStream == null)
{
_content = s_emptyBinaryData;
Expand Down Expand Up @@ -135,8 +131,8 @@ internal async Task BufferContentAsync(TimeSpan? timeout = default, Cancellation
return;
}

Stream? responseContentStream = _contentStream;
if (responseContentStream == null || IsBuffered)
Stream? responseContentStream = ContentStream;
if (responseContentStream == null)
{
_content = s_emptyBinaryData;
return;
Expand Down