File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public void BeginEncodeHeaders_StaticKey_WriteStaticNameAndFullValue()
136
136
Span < byte > buffer = new byte [ 1024 * 16 ] ;
137
137
138
138
var headers = ( IHeaderDictionary ) new HttpResponseHeaders ( ) ;
139
- headers . ContentType = "application/json " ;
139
+ headers . ContentType = "application/custom " ;
140
140
141
141
var totalHeaderSize = 0 ;
142
142
var enumerator = new Http3HeadersEnumerator ( ) ;
@@ -146,6 +146,6 @@ public void BeginEncodeHeaders_StaticKey_WriteStaticNameAndFullValue()
146
146
147
147
var result = buffer . Slice ( 2 , length - 2 ) . ToArray ( ) ;
148
148
var hex = BitConverter . ToString ( result ) ;
149
- Assert . Equal ( "5F-1D-10 -61-70-70-6C-69-63-61-74-69-6F-6E-2F-6A- 73-6F-6E " , hex ) ;
149
+ Assert . Equal ( "5F-1D-12 -61-70-70-6C-69-63-61-74-69-6F-6E-2F-63-75- 73-74- 6F-6D " , hex ) ;
150
150
}
151
151
}
Original file line number Diff line number Diff line change @@ -1431,7 +1431,7 @@ private static IEnumerable<QPackGroup> GroupQPack(KnownHeader[] headers)
1431
1431
var staticHeaders = new ( int Index , System . Net . Http . QPack . HeaderField HeaderField ) [ H3StaticTable . Count ] ;
1432
1432
for ( var i = 0 ; i < H3StaticTable . Count ; i ++ )
1433
1433
{
1434
- staticHeaders [ i ] = ( i , H3StaticTable . GetHeaderFieldAt ( i ) ) ;
1434
+ staticHeaders [ i ] = ( i , H3StaticTable . Get ( i ) ) ;
1435
1435
}
1436
1436
1437
1437
var groupedHeaders = staticHeaders . GroupBy ( h => Encoding . ASCII . GetString ( h . HeaderField . Name ) ) . Select ( g =>
You can’t perform that action at this time.
0 commit comments