ソースを参照

Minor fix in Digest authentication

Eugene Fryntov 10 年 前
コミット
1755a70031
1 ファイル変更1 行追加1 行削除
  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)
 		d.ApplyAuth(req)
 		a.state = DIGEST_HTTP_AUTH_STATE_RESPONSE_GENERATED
 		a.state = DIGEST_HTTP_AUTH_STATE_RESPONSE_GENERATED
 		return nil
 		return nil
-
+	} else {
 		return errors.New("Authorization is not accepted by the proxy server")
 		return errors.New("Authorization is not accepted by the proxy server")
 	}
 	}
 }
 }