Browse Source

Remove status header, by default 200 OK

Vova Tkach 6 years ago
parent
commit
62f9d7592d
1 changed files with 0 additions and 2 deletions
  1. 0 2
      engine/wrapper/wrapper.go

+ 0 - 2
engine/wrapper/wrapper.go

@@ -150,7 +150,6 @@ func (this *Wrapper) RenderFrontEnd(tname string, data interface{}) {
 		utils.SystemErrorPageEngine(this.W, err)
 		return
 	}
-	this.W.WriteHeader(http.StatusOK)
 	this.W.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
 	this.W.Header().Set("Content-Type", "text/html; charset=utf-8")
 	tmpl.Execute(this.W, consts.TmplData{
@@ -165,7 +164,6 @@ func (this *Wrapper) RenderBackEnd(tcont []byte, data interface{}) {
 		utils.SystemErrorPageEngine(this.W, err)
 		return
 	}
-	this.W.WriteHeader(http.StatusOK)
 	this.W.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
 	this.W.Header().Set("Content-Type", "text/html; charset=utf-8")
 	tmpl.Execute(this.W, consts.TmplData{