MCPcopy Index your code
hub / github.com/google/go-github / bareDoIgnoreRedirects

Method bareDoIgnoreRedirects

github/github.go:1270–1272  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

1268// redirection code returned by the API. If a redirection is returned by the api, bareDoIgnoreRedirects
1269// returns a *RedirectionError.
1270func (c *Client) bareDoIgnoreRedirects(req *http.Request) (*Response, error) {
1271 return c.bareDo(c.clientIgnoreRedirects, req)
1272}
1273
1274var errInvalidLocation = errors.New("invalid or empty Location header in redirection response")
1275

Callers 1

bareDoUntilFoundMethod · 0.95

Calls 1

bareDoMethod · 0.95

Tested by

no test coverage detected