Fix for issue #61

master
sta 12 years ago
parent 14aa5932bc
commit b840ac0eb9

@ -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";

Loading…
Cancel
Save