Pārlūkot izejas kodu

Minor fix in Digest authentication

Eugene Fryntov 10 gadi atpakaļ
vecāks
revīzija
1755a70031
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      psiphon/upstreamproxy/auth_digest.go

+ 1 - 1
psiphon/upstreamproxy/auth_digest.go

@@ -142,7 +142,7 @@ func (a DigestHttpAuthenticator) authenticate(req *http.Request, username, passw
 		d.ApplyAuth(req)
 		a.state = DIGEST_HTTP_AUTH_STATE_RESPONSE_GENERATED
 		return nil
-
+	} else {
 		return errors.New("Authorization is not accepted by the proxy server")
 	}
 }