Skip to content

Commit ba4d24b

Browse files
committed
chore(middleware): Inject service to the NoncedHandler context
Resf: #23
1 parent 9a2d42a commit ba4d24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

middleware_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func NewNoncedServeMux(t *testing.T) http.Handler {
3030
h := http.NewServeMux()
3131
h.HandleFunc("/new-nonce", nonced.GetNonce)
3232
h.HandleFunc("/do-nonced-something", nonced.DoNoncedFunc)
33-
return Nonced(h, s)
33+
return NonceServed(s, "")(Nonced(h, s))
3434
}
3535

3636
func TestNoncedServer(t *testing.T) {

0 commit comments

Comments
 (0)