From 983b3071c7cf85c1dd8f3c7e06ffabcd8c907615 Mon Sep 17 00:00:00 2001 From: Alex Vlaicu Date: Thu, 25 Jul 2019 16:52:28 +0200 Subject: [PATCH] Let Contet-Type be overwritten with provided one in response headers --- Anna/Responses/Response.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Anna/Responses/Response.cs b/Anna/Responses/Response.cs index 1500436..20a3305 100644 --- a/Anna/Responses/Response.cs +++ b/Anna/Responses/Response.cs @@ -22,7 +22,7 @@ public Response(RequestContext context, int statusCode = 200, IEnumerable { { "Content-Type", "text/html" } }; if (headers != null) foreach (var pair in headers) - Headers.Add(pair); + Headers[pair.Key] = pair.Value; listenerResponse = context.ListenerResponse; }