aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'client.go')
-rw-r--r--client.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/client.go b/client.go
index 12812dd..8a88728 100644
--- a/client.go
+++ b/client.go
@@ -12,13 +12,10 @@ import (
"time"
)
-// Link to the next stage
-type Link map[string]string
-
// Client ...
type Client struct {
Dir Directory
- Link Link
+ Link map[string]string
Location string
nonce chan string
RetryAfter time.Duration
@@ -119,7 +116,7 @@ func (c *Client) parseHeader(r *http.Response) {
c.Location = r.Header.Get("Location")
- c.Link = make(Link)
+ c.Link = make(map[string]string)
for _, l := range r.Header["Link"] {
re := linksRe.FindStringSubmatch(l)
if len(re) == 3 {