[Modify] Polish it

This commit is contained in:
sta 2018-11-13 19:47:24 +09:00
parent 6eabf96229
commit 2fbac3f581

View File

@ -569,11 +569,8 @@ namespace WebSocketSharp.Net
output.WriteByte ((byte) '%');
var i = (int) b;
var idx = i >> 4;
output.WriteByte ((byte) _hexChars[idx]);
idx = i & 0x0F;
output.WriteByte ((byte) _hexChars[idx]);
output.WriteByte ((byte) _hexChars[i >> 4]);
output.WriteByte ((byte) _hexChars[i & 0x0F]);
}
private static byte[] urlEncodeToBytes (byte[] bytes, int offset, int count)