File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public static class HeaderNames
65
65
public static readonly string Authorization = "Authorization" ;
66
66
67
67
/// <summary>Gets the <c>baggage</c> HTTP header name.</summary>
68
- public static readonly string Baggage = "Baggage " ;
68
+ public static readonly string Baggage = "baggage " ;
69
69
70
70
/// <summary>Gets the <c>Cache-Control</c> HTTP header name.</summary>
71
71
public static readonly string CacheControl = "Cache-Control" ;
@@ -248,10 +248,10 @@ public static class HeaderNames
248
248
public static readonly string Translate = "Translate" ;
249
249
250
250
/// <summary>Gets the <c>traceparent</c> HTTP header name.</summary>
251
- public static readonly string TraceParent = "TraceParent " ;
251
+ public static readonly string TraceParent = "traceparent " ;
252
252
253
253
/// <summary>Gets the <c>tracestate</c> HTTP header name.</summary>
254
- public static readonly string TraceState = "TraceState " ;
254
+ public static readonly string TraceState = "tracestate " ;
255
255
256
256
/// <summary>Gets the <c>Upgrade</c> HTTP header name.</summary>
257
257
public static readonly string Upgrade = "Upgrade" ;
Original file line number Diff line number Diff line change @@ -387,6 +387,14 @@ public class KnownHeader
387
387
388
388
private string ResolveIdentifier ( string name )
389
389
{
390
+ // Check the 3 lowercase headers
391
+ switch ( name )
392
+ {
393
+ case "baggage" : return "Baggage" ;
394
+ case "traceparent" : return "TraceParent" ;
395
+ case "tracestate" : return "TraceState" ;
396
+ }
397
+
390
398
var identifier = name . Replace ( "-" , "" ) ;
391
399
392
400
// Pseudo headers start with a colon. A colon isn't valid in C# names so
You can’t perform that action at this time.
0 commit comments