mirror of
https://github.com/186526/handlers.js
synced 2024-10-13 00:29:43 +00:00
release: 0.1.2
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user