Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 625ac19

Browse files
committed
Make RestrictedHeaders case-insensitive
1 parent 9d32b25 commit 625ac19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.Text/HttpUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,9 +1403,9 @@ public static class HttpHeaders
14031403

14041404
public const string Date = "Date";
14051405
public const string Host = "Host";
1406-
public const string UserAgent = "UserAgent";
1406+
public const string UserAgent = "User-Agent";
14071407

1408-
public static HashSet<string> RestrictedHeaders = new HashSet<string>
1408+
public static HashSet<string> RestrictedHeaders = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
14091409
{
14101410
Accept,
14111411
Connection,

0 commit comments

Comments
 (0)