aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go6
1 files changed, 2 insertions, 4 deletions
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 {