Fix for issue #61
This commit is contained in:
parent
14aa5932bc
commit
b840ac0eb9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user