bareDoIgnoreRedirects has the exact same behavior as BareDo but stops at the first redirection code returned by the API. If a redirection is returned by the api, bareDoIgnoreRedirects returns a *RedirectionError.
(req *http.Request)
| 1268 | // redirection code returned by the API. If a redirection is returned by the api, bareDoIgnoreRedirects |
| 1269 | // returns a *RedirectionError. |
| 1270 | func (c *Client) bareDoIgnoreRedirects(req *http.Request) (*Response, error) { |
| 1271 | return c.bareDo(c.clientIgnoreRedirects, req) |
| 1272 | } |
| 1273 | |
| 1274 | var errInvalidLocation = errors.New("invalid or empty Location header in redirection response") |
| 1275 |
no test coverage detected