This commit is contained in:
Redkale
2020-01-29 12:31:11 +08:00
parent a34f85bfc9
commit c36fc36964

View File

@@ -145,6 +145,7 @@ public class HttpRequest extends Request<HttpContext> {
if (offset <= 0) return -1;
String name = bytes.toString(index, offset, charset);
index = offset + 1;
//Upgrade: websocket 前面有空格所以需要trim()
String value = bytes.toString(index, bytes.size() - index, charset).trim();
switch (name) {
case "Content-Type":