aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-21 00:39:50 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-21 00:39:50 +0100
commit81db1c84aa4916a02887ab436beb53f0b090bc1e (patch)
tree6185ee79e1bf266c85d9afda24437c0770c4cd3a /client.go
parentd2afad37c087ba4f0026dc08d11cddcd5fde400e (diff)
bikeshading
Diffstat (limited to 'client.go')
-rw-r--r--client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.go b/client.go
index 7c32b70..7a023b5 100644
--- a/client.go
+++ b/client.go
@@ -114,8 +114,8 @@ func (c *Client) post(s Signer, v interface{}) error {
var linksRe = regexp.MustCompile(`^<(.*)>;rel="(.*)"`)
func (c *Client) parseHeader(r *http.Response) {
- if no := r.Header.Get("Replay-Nonce"); no != "" {
- c.nonce <- no
+ if rn := r.Header.Get("Replay-Nonce"); rn != "" {
+ c.nonce <- rn
}
if lo := r.Header.Get("Location"); lo != "" {