From 6acc0d0b818ec6a660926f0856d52ccabc58239b Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 5 Jan 2016 19:04:54 +0100 Subject: kiss --- provider.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'provider.go') diff --git a/provider.go b/provider.go index af21b26..040f713 100644 --- a/provider.go +++ b/provider.go @@ -127,10 +127,8 @@ func problem(resp *http.Response) error { return p } -type Links map[string]string - type nextStep struct { - Link Links + Link map[string]string Location *url.URL RetryAfter time.Duration } @@ -144,7 +142,7 @@ func parseHeader(r *http.Response) nextStep { ns.Location = lo } - ns.Link = make(Links) + ns.Link = make(map[string]string) for _, li := range r.Header["Link"] { re := linksRe.FindStringSubmatch(li) if len(re) == 3 { -- cgit v1.2.3