satellite/marketingweb: WriteHeader should only be called once (#2850)

This commit is contained in:
Egon Elbre 2019-08-22 13:08:49 +03:00 committed by GitHub
parent cff6dc2b2a
commit 1b9d163c95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}
}