(b []byte)
| 314 | } |
| 315 | |
| 316 | func (w *pipeResponseWriter) Write(b []byte) (int, error) { |
| 317 | if !w.wroteHeader { |
| 318 | w.WriteHeader(http.StatusOK) |
| 319 | } |
| 320 | |
| 321 | w.hasContent = true |
| 322 | if !w.sentResponse { |
| 323 | w.sendResponse() |
| 324 | } |
| 325 | return w.pw.Write(b) |
| 326 | } |
| 327 | |
| 328 | func (w *pipeResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) { |
| 329 | if w.wasHijacked { |
no test coverage detected