aboutsummaryrefslogtreecommitdiff
path: root/nonce.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-28 18:52:49 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-28 18:52:49 +0100
commitc6261c5ce9537296479b621e91a90e4f57a21734 (patch)
treea81f7dfc613bec42437890fedeb9af8b01adf5a5 /nonce.go
parentf280d0d011a8dd1fbc582b54a248c9e8459311b0 (diff)
WIP error handler
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