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