Fix for issue #61

This commit is contained in:
sta 2014-07-31 21:16:28 +09:00
parent 14aa5932bc
commit b840ac0eb9

View File

@ -522,7 +522,7 @@ namespace WebSocketSharp.Net
var charset = tmp.GetValue ("="); var charset = tmp.GetValue ("=");
if (charset != null && charset.Length > 0) { if (charset != null && charset.Length > 0) {
try { try {
_contentEncoding = Encoding.GetEncoding (charset); _contentEncoding = Encoding.GetEncoding (charset.Trim ('"'));
} }
catch { catch {
_context.ErrorMessage = "Invalid Content-Type header"; _context.ErrorMessage = "Invalid Content-Type header";