From 961456e88f831608b3c43342ea536d7ebd5e1e68 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Mon, 17 Apr 2017 11:28:55 -0600 Subject: [PATCH] lfsapi/client: rename setExtraHeaders to extraHeadersFor --- lfsapi/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lfsapi/client.go b/lfsapi/client.go index e63f94c0..1350e665 100644 --- a/lfsapi/client.go +++ b/lfsapi/client.go @@ -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) @@ -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