satellite/marketingweb: WriteHeader should only be called once (#2850)
This commit is contained in:
parent
cff6dc2b2a
commit
1b9d163c95
@ -99,7 +99,6 @@ func (s *Server) GetOffers(w http.ResponseWriter, req *http.Request) {
|
||||
|
||||
if err := s.templates.home.ExecuteTemplate(w, "base", offers.OrganizeOffersByType()); err != nil {
|
||||
s.log.Error("failed to execute template", zap.Error(err))
|
||||
s.serveInternalError(w, req, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user