(c net.Conn)
| 994 | } |
| 995 | |
| 996 | func writeBadGateway(c net.Conn) { |
| 997 | _, _ = c.Write([]byte("HTTP/1.1 502 Bad Gateway\r\nContent-Length: 0\r\nConnection: close\r\n\r\n")) |
| 998 | } |
| 999 | |
| 1000 | // writeBadRequest is the client-side counterpart to writeBadGateway: |
| 1001 | // 400-class so the failure isn't misattributed to the upstream by |
no test coverage detected