(method string, status int)
| 262 | } |
| 263 | |
| 264 | func responseHasBody(method string, status int) bool { |
| 265 | return method != http.MethodHead && status >= 200 && |
| 266 | status != http.StatusNoContent && status != http.StatusNotModified |
| 267 | } |
| 268 | |
| 269 | // tunnel answers a CONNECT as the host gh asked for: it completes the TLS |
| 270 | // handshake with a certificate from ghmock's authority, then hands the |