Skip to content
Snippets Groups Projects
Commit 065f2c7e authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Acknowledge no-op

parent 5698ebe0
No related branches found
No related tags found
1 merge request!157Don't append error messages to Git response body
Loading
Loading
@@ -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))
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment