about summary refs log tree commit diff
path: root/MatrixMediaGate/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--MatrixMediaGate/Program.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/MatrixMediaGate/Program.cs b/MatrixMediaGate/Program.cs
index 353858b..cef146f 100644
--- a/MatrixMediaGate/Program.cs
+++ b/MatrixMediaGate/Program.cs
@@ -27,7 +27,7 @@ async Task Proxy(HttpClient hc, ProxyConfiguration cfg, HttpContext ctx, ILogger
     using var req = new HttpRequestMessage(method, path);
     foreach (var header in ctx.Request.Headers) {
         if (header.Key != "Accept-Encoding" && header.Key != "Content-Type" && header.Key != "Content-Length")
-            req.Headers.Add(header.Key, header.Value.ToArray());
+            req.Headers.TryAddWithoutValidation(header.Key, header.Value.ToArray());
     }
 
     req.Headers.Host = cfg.Host;