(code int)
| 145 | } |
| 146 | |
| 147 | func (w *gzipResponseWriter) WriteHeader(code int) { |
| 148 | w.Header().Del(echo.HeaderContentLength) // Issue #444 |
| 149 | |
| 150 | w.wroteHeader = true |
| 151 | |
| 152 | // Delay writing of the header until we know if we'll actually compress the response |
| 153 | w.code = code |
| 154 | } |
| 155 | |
| 156 | func (w *gzipResponseWriter) Write(b []byte) (int, error) { |
| 157 | if w.Header().Get(echo.HeaderContentType) == "" { |