Skip to content

Commit b791d8c

Browse files
authored
Update HttpConnectionBase.cs (#59722)
1 parent 0d0d5a2 commit b791d8c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ static string GetOrAddCachedValue([NotNull] ref string? cache, HeaderDescriptor
3535
{
3636
cache = lastValue = descriptor.GetHeaderValue(value, encoding);
3737
}
38+
Debug.Assert(cache is not null);
3839
return lastValue;
3940
}
4041
}

0 commit comments

Comments
 (0)