Modified for quoted string
This commit is contained in:
parent
b840ac0eb9
commit
8103a754bb
@ -106,9 +106,9 @@ namespace WebSocketSharp
|
|||||||
var charset = contentType.Substring (i + 8);
|
var charset = contentType.Substring (i + 8);
|
||||||
i = charset.IndexOf (';');
|
i = charset.IndexOf (';');
|
||||||
if (i != -1)
|
if (i != -1)
|
||||||
charset = charset.Substring (0, i);
|
charset = charset.Substring (0, i).TrimEnd ();
|
||||||
|
|
||||||
return Encoding.GetEncoding (charset);
|
return Encoding.GetEncoding (charset.Trim ('"'));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static byte[] readEntityBody (Stream stream, string length)
|
private static byte[] readEntityBody (Stream stream, string length)
|
||||||
|
Loading…
Reference in New Issue
Block a user