From b840ac0eb94b71a555176b5a1f85c24177d70cc8 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 31 Jul 2014 21:16:28 +0900 Subject: [PATCH] Fix for issue #61 --- websocket-sharp/Net/HttpListenerRequest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpListenerRequest.cs b/websocket-sharp/Net/HttpListenerRequest.cs index f461201f..3af9a2c6 100644 --- a/websocket-sharp/Net/HttpListenerRequest.cs +++ b/websocket-sharp/Net/HttpListenerRequest.cs @@ -522,7 +522,7 @@ namespace WebSocketSharp.Net var charset = tmp.GetValue ("="); if (charset != null && charset.Length > 0) { try { - _contentEncoding = Encoding.GetEncoding (charset); + _contentEncoding = Encoding.GetEncoding (charset.Trim ('"')); } catch { _context.ErrorMessage = "Invalid Content-Type header";