mirror of
https://github.com/coder/code-server.git
synced 2025-07-29 04:52:53 +08:00
Make updating work for both binary and loose releases
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user