Archived
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d89310bb2e | ||
|
|
1c085b9ec5 |
@@ -102,6 +102,7 @@ export class HTTPServer {
|
||||
}
|
||||
|
||||
private async handleHttp(conn: Deno.Conn) {
|
||||
try {
|
||||
const httpConn = Deno.serveHttp(conn);
|
||||
for await (const requestEvent of httpConn) {
|
||||
const filepath = decodeURIComponent(
|
||||
@@ -242,6 +243,9 @@ export class HTTPServer {
|
||||
}
|
||||
this.handleNotFound(routeRequest, routeReply, requestEvent);
|
||||
}
|
||||
} catch (_err) {
|
||||
// Ignore http that where closed before reply was sent
|
||||
}
|
||||
}
|
||||
|
||||
close() {
|
||||
|
||||
Reference in new issue
Block a user