@@ -599,8 +599,7 @@ type SignatureAuthenticator struct {
599599 auth hmacauth.HmacAuth
600600}
601601
602−func (v *SignatureAuthenticator) Authenticate(
603− w http.ResponseWriter, r *http.Request) {
602+func (v *SignatureAuthenticator) Authenticate(w http.ResponseWriter, r *http.Request) {
604603 result, headerSig, computedSig := v.auth.AuthenticateRequest(r)
605604 if result == hmacauth.ResultNoSignature {
606605 w.Write([]byte("no signature received"))
@@ -688,10 +687,7 @@ func (st *SignatureTest) MakeRequestWithExpectedKey(method, body, key string) {
688687 if body != "" {
689688 bodyBuf = ioutil.NopCloser(&fakeNetConn{reqBody: body})
690689 }
691− req, err := http.NewRequest(method, "/foo/bar", bodyBuf)
692− if err != nil {
693− panic(err)
694− }
690+ req := httptest.NewRequest(method, "/foo/bar", bodyBuf)
695691 req.Header = st.header
696692
697693 state := &providers.SessionState{