modify error sending to use WriteFlush to ensure writer flushed

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
master
kim (grufwub) 4 years ago
parent 9ea253d9bb
commit e27f7aea81

@ -101,7 +101,7 @@ func (worker *Worker) Serve() {
/* If we got response bytes to send? SEND 'EM! */
if response != nil {
/* No gods. No masters. We don't care about error checking here */
request.Write(response)
request.WriteFlush(response)
}
request.AccessLogError("Failed to serve: %s\n", request.AbsPath())

Loading…
Cancel
Save