release: 0.1.2

This commit is contained in:
2024-08-01 04:58:14 +08:00
parent c216c0a62f
commit 79b9fba1cd
6 changed files with 145 additions and 14 deletions

View File

@ -23,7 +23,7 @@ export class HttpConn {
const [method, path, version] = firstLine.split(' ');
if (version in ['HTTP/1.1', 'HTTP/1.0', 'HTTP/0.9']) {
if (!(version in ['HTTP/1.1', 'HTTP/1.0', 'HTTP/0.9'])) {
this.conn.close();
}