aboutsummaryrefslogtreecommitdiff
path: root/account.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-06 11:04:50 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-06 11:04:50 +0100
commit4c01872714a54959d32cce1a651756019d185f32 (patch)
tree31334c1cb53cd98e8c92fe9b9733ab4d84be03b1 /account.go
parent56eb87944ec5e64daff1d7d0f80e9a60eb12bf96 (diff)
Parse Retry-After
Diffstat (limited to 'account.go')
-rw-r--r--account.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/account.go b/account.go
index 20dc7c7..3d01e1d 100644
--- a/account.go
+++ b/account.go
@@ -34,6 +34,10 @@ func NewAccount(email string, bits int) (*Account, error) {
}, nil
}
+func LoadAccount(email string) (*Account, error) {
+ return nil, nil
+}
+
func (a *Account) Sign(msg []byte) ([]byte, error) {
if a.signer == nil {
var err error
@@ -67,7 +71,7 @@ func (a Account) Nonce() (string, error) {
}
func (a Account) parseNonce(r *http.Response) {
- if nonce := r.Header.Get("Replay-Nonce"); nonce != "" {
+ if nonce := replyNonce(r); nonce != "" {
a.nonce <- nonce
}
}