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

Commit 9d32b25

Browse files
committed
Add HttpHeaders.RestrictedHeaders
1 parent cbfbd0d commit 9d32b25

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/ServiceStack.Text/HttpUtils.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,27 @@ public static class HttpHeaders
14001400
public const string Via = "Via";
14011401

14021402
public const string Warning = "Warning";
1403+
1404+
public const string Date = "Date";
1405+
public const string Host = "Host";
1406+
public const string UserAgent = "UserAgent";
1407+
1408+
public static HashSet<string> RestrictedHeaders = new HashSet<string>
1409+
{
1410+
Accept,
1411+
Connection,
1412+
ContentLength,
1413+
ContentType,
1414+
Date,
1415+
Expect,
1416+
Host,
1417+
IfModifiedSince,
1418+
Range,
1419+
Referer,
1420+
TransferEncoding,
1421+
UserAgent,
1422+
ProxyConnection,
1423+
};
14031424
}
14041425

14051426
public static class HttpMethods

0 commit comments

Comments
 (0)