Make updating work for both binary and loose releases

This commit is contained in:
Asher
2020-02-20 15:50:01 -06:00
parent 815dc06118
commit 319cd3f7ab
5 changed files with 357 additions and 29 deletions

View File

@ -500,6 +500,7 @@ export class HttpServer {
response.writeHead(error.code === "ENOENT" ? HttpCode.NotFound : HttpCode.ServerError)
response.end(error.message)
})
payload.stream.on("close", () => response.end())
payload.stream.pipe(response)
} else if (typeof payload.content === "string" || payload.content instanceof Buffer) {
response.end(payload.content)