Skip to content

Commit

Permalink
headers change
Browse files Browse the repository at this point in the history
  • Loading branch information
NaluTripician committed Jul 11, 2024
1 parent 1746271 commit 89969f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Microsoft.Azure.Cosmos/src/Headers/Headers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ public virtual T GetHeaderValue<T>(string headerName)
/// <returns>a cloned copy of the current <see cref="Headers"/></returns>
internal Headers Clone()
{
StoreRequestHeaders clone = new StoreRequestHeaders();
Headers clone = new Headers();
foreach (string key in this.CosmosMessageHeaders.AllKeys())
{
clone.Add(key, this.CosmosMessageHeaders.Get(key));
}

return new Headers(clone);
return clone;
}

/// <summary>
Expand Down

0 comments on commit 89969f3

Please sign in to comment.