Commit b912293a authored by Kamil Trzcinski's avatar Kamil Trzcinski

Comment why we do Connection: Close

parent 4d4c1f02
......@@ -26,8 +26,10 @@ func logError(err error) {
func httpError(w http.ResponseWriter, r *http.Request, error string, code int) {
if r.ProtoAtLeast(1, 1) {
// Force client to disconnect if we render request error
w.Header().Set("Connection", "close")
}
http.Error(w, error, code)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment