Fixup shadowed err var
@@ -210,7 +210,7 @@ func (s *HTTPServer) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
clientReq := req.Clone(req.Context())
- if err := s.setGetBody(h, clientReq); err != nil {
+ if err = s.setGetBody(h, clientReq); err != nil {
mux.opts.ServerOptions.ServerErrTpl.ServeError(err).ServeHTTP(rw, req)
return
}
