(code int)
| 304 | } |
| 305 | |
| 306 | func (w *pipeResponseWriter) WriteHeader(code int) { |
| 307 | if w.wroteHeader { |
| 308 | return |
| 309 | } |
| 310 | w.wroteHeader = true |
| 311 | |
| 312 | w.resp.StatusCode = code |
| 313 | w.resp.Status = fmt.Sprintf("%d %s", code, http.StatusText(code)) |
| 314 | } |
| 315 | |
| 316 | func (w *pipeResponseWriter) Write(b []byte) (int, error) { |
| 317 | if !w.wroteHeader { |