aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-05 19:04:54 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-05 19:04:54 +0100
commit6acc0d0b818ec6a660926f0856d52ccabc58239b (patch)
treeea18423842c70865a84ec401b082146d03f35d7b /provider.go
parent2cf18f38fa97ba8b4524170960dff68b2a83ceec (diff)
kiss
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 {