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()
136136 Span < byte > buffer = new byte [ 1024 * 16 ] ;
137137
138138 var headers = ( IHeaderDictionary ) new HttpResponseHeaders ( ) ;
139- headers . ContentType = "application/json " ;
139+ headers . ContentType = "application/custom " ;
140140
141141 var totalHeaderSize = 0 ;
142142 var enumerator = new Http3HeadersEnumerator ( ) ;
@@ -146,6 +146,6 @@ public void BeginEncodeHeaders_StaticKey_WriteStaticNameAndFullValue()
146146
147147 var result = buffer . Slice ( 2 , length - 2 ) . ToArray ( ) ;
148148 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 ) ;
150150 }
151151}
Original file line number Diff line number Diff line change @@ -1431,7 +1431,7 @@ private static IEnumerable<QPackGroup> GroupQPack(KnownHeader[] headers)
14311431 var staticHeaders = new ( int Index , System . Net . Http . QPack . HeaderField HeaderField ) [ H3StaticTable . Count ] ;
14321432 for ( var i = 0 ; i < H3StaticTable . Count ; i ++ )
14331433 {
1434- staticHeaders [ i ] = ( i , H3StaticTable . GetHeaderFieldAt ( i ) ) ;
1434+ staticHeaders [ i ] = ( i , H3StaticTable . Get ( i ) ) ;
14351435 }
14361436
14371437 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