From 8157c154edad86c0c3c600a16e338d976a59dc69 Mon Sep 17 00:00:00 2001 From: Andrew Polden Date: Mon, 30 May 2022 09:23:36 +1000 Subject: [PATCH] Addresses #19, use StringComparer.OrdinalIgnoreCase for header dictionary keys --- src/main/SimpleHttpListener.Rx/Model/Base/HttpHeaderBase.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/SimpleHttpListener.Rx/Model/Base/HttpHeaderBase.cs b/src/main/SimpleHttpListener.Rx/Model/Base/HttpHeaderBase.cs index 2321f81..fe97d50 100644 --- a/src/main/SimpleHttpListener.Rx/Model/Base/HttpHeaderBase.cs +++ b/src/main/SimpleHttpListener.Rx/Model/Base/HttpHeaderBase.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.IO; using System.Net.Sockets; using ISimpleHttpListener.Rx.Model; @@ -7,7 +8,7 @@ namespace SimpleHttpListener.Rx.Model.Base { public abstract class HttpHeaderBase : ParseControlBase, IHttpHeaders { - public IDictionary Headers { get; set; } = new Dictionary(); + public IDictionary Headers { get; set; } = new Dictionary(StringComparer.OrdinalIgnoreCase); public Stream ResponseStream { get; set; }