mirror of
https://github.com/soypat/lneto.git
synced 2026-08-14 11:53:43 +00:00
massive documentation push and code reordering in files
This commit is contained in:
@@ -97,8 +97,8 @@ func homepage(exch *httphi.Exchange) {
|
||||
n += len(strconv.AppendUint(page[n:n], visits.Add(1), 10))
|
||||
n += copy(page[n:], htmlTail)
|
||||
|
||||
exch.SetHeader("Content-Type", "text/html")
|
||||
exch.SetHeaderInt("Content-Length", int64(n), 10)
|
||||
exch.StageHeader("Content-Type", "text/html")
|
||||
exch.StageHeaderInt("Content-Length", int64(n), 10)
|
||||
exch.WriteHeader(int(httphi.StatusOK))
|
||||
exch.Write(page[:n])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user