@@ -34,7 +34,7 @@ public partial class MIM_App1 : System.Web.UI.Page
3434 /// Access token variables - temporary
3535 /// </summary>
3636 private string apiKey , authCode , authorizeRedirectUri , secretKey , accessToken ,
37- scope , refreshToken , refreshTokenExpiryTime , accessTokenExpiryTime , bypassSSL ;
37+ scope , refreshToken , refreshTokenExpiryTime , accessTokenExpiryTime ;
3838
3939 /// <summary>
4040 /// Maximum number of addresses user can specify
@@ -74,7 +74,7 @@ public partial class MIM_App1 : System.Web.UI.Page
7474
7575 protected void Page_Load ( object sender , EventArgs e )
7676 {
77- BypassCertificateError ( ) ;
77+ this . BypassCertificateError ( ) ;
7878 this . ReadConfigFile ( ) ;
7979
8080 if ( ( Session [ "cs_rest_appState" ] == "GetToken" ) && ( Request [ "Code" ] != null ) )
@@ -796,19 +796,13 @@ private void GetMessageContentByIDnPartNumber(string accTok, string endP, string
796796
797797 }
798798
799- private static void BypassCertificateError ( )
799+ private void BypassCertificateError ( )
800800 {
801- string bypassSSL = ConfigurationManager . AppSettings [ "IgnoreSSL" ] ;
802-
803- if ( ( ! string . IsNullOrEmpty ( bypassSSL ) )
804- && ( string . Equals ( bypassSSL , "true" , StringComparison . OrdinalIgnoreCase ) ) )
805- {
806- ServicePointManager . ServerCertificateValidationCallback +=
807- delegate ( Object sender1 , X509Certificate certificate , X509Chain chain , SslPolicyErrors sslPolicyErrors )
808- {
809- return true ;
810- } ;
811- }
801+ ServicePointManager . ServerCertificateValidationCallback +=
802+ delegate ( object sender1 , X509Certificate certificate , X509Chain chain , SslPolicyErrors sslPolicyErrors )
803+ {
804+ return true ;
805+ } ;
812806 }
813807
814808 protected void SetRequestSessionVariables ( )
0 commit comments