aboutsummaryrefslogtreecommitdiff
path: root/nonce.go
diff options
context:
space:
mode:
Diffstat (limited to 'nonce.go')
-rw-r--r--nonce.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/nonce.go b/nonce.go
index 95440ab..88e67ca 100644
--- a/nonce.go
+++ b/nonce.go
@@ -9,6 +9,10 @@ var errNoNonces = errors.New("No nonces available")
type nonce chan string
+func newNonce() nonce {
+ return make(nonce, 100)
+}
+
func (n nonce) parse(r *http.Response) {
if nonce := r.Header.Get("Replay-Nonce"); nonce != "" {
n <- nonce