mirror of
https://github.com/soypat/lneto.git
synced 2026-08-11 18:33:46 +00:00
MuxSlice more method muxing improvements
This commit is contained in:
@@ -100,7 +100,7 @@ func homepage(exch *httphi.Exchange) {
|
||||
n += copy(page[n:], htmlTail)
|
||||
|
||||
exch.StageHeader("Content-Type", "text/html")
|
||||
exch.StageHeaderInt("Content-Length", int64(n), 10)
|
||||
exch.StageHeaderInt("Content-Length", int64(n))
|
||||
exch.WriteHeader(int(httphi.StatusOK))
|
||||
exch.WriteBody(page[:n])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user