Commit 065f2c7e authored by Jacob Vosmaer's avatar Jacob Vosmaer

Acknowledge no-op

parent 5698ebe0
......@@ -39,6 +39,8 @@ func postRPCHandler(a *api.API, name string, handler func(*GitHttpResponseWriter
}()
if err := handler(w, r, ar); err != nil {
// If the handler already wrote a response this WriteHeader call is a
// (harmless) no-op.
w.WriteHeader(500)
helper.LogError(r, fmt.Errorf("%s: %v", name, err))
}
......
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