Skip to content

Commit

Permalink
lfsapi/client: rename setExtraHeaders to extraHeadersFor
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaylorr committed Apr 17, 2017
1 parent d4aec73 commit 961456e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lfsapi/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func joinURL(prefix, suffix string) string {
}

func (c *Client) Do(req *http.Request) (*http.Response, error) {
req.Header = c.setExtraHeaders(req)
req.Header = c.extraHeadersFor(req)
req.Header.Set("User-Agent", UserAgent)

res, err := c.doWithRedirects(c.httpClient(req.Host), req, nil)
Expand All @@ -77,7 +77,7 @@ func (c *Client) Do(req *http.Request) (*http.Response, error) {
return res, c.handleResponse(res)
}

func (c *Client) setExtraHeaders(req *http.Request) http.Header {
func (c *Client) extraHeadersFor(req *http.Request) http.Header {
copy := make(http.Header, len(req.Header))
for k, vs := range req.Header {
copy[k] = vs
Expand Down

0 comments on commit 961456e

Please sign in to comment.