We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method MinioClientFactory.CreatClient always creates a client with SSL true, even if you configure it as false;
public static IMinioClient WithSSL(this IMinioClient minioClient, bool secure = true) { if (minioClient is null) throw new ArgumentNullException(nameof(minioClient)); if (secure) { minioClient.Config.Secure = true; if (string.IsNullOrEmpty(minioClient.Config.BaseUrl)) return minioClient; //var secureUrl = RequestUtil.MakeTargetURL(minioClient.BaseUrl, minioClient.Secure); } else { minioClient.Config.Secure = false; } return minioClient; }
var client = new MinioClient() .WithSSL(); --> defaut value is true
// after this client will be configured with action: configureClient(client);
// In the method there is no action for the false case. So when you created client before, its already created with SSL true
public static IMinioClient WithSSL(this IMinioClient minioClient, bool secure = true) { if (minioClient is null) throw new ArgumentNullException(nameof(minioClient)); if (secure) { minioClient.Config.Secure = true; if (string.IsNullOrEmpty(minioClient.Config.BaseUrl)) return minioClient; //var secureUrl = RequestUtil.MakeTargetURL(minioClient.BaseUrl, minioClient.Secure); } -- NO ACTION FOR FALSE CASE; return minioClient; }
The text was updated successfully, but these errors were encountered:
Duplicate of #884
Sorry, something went wrong.
No branches or pull requests
Method MinioClientFactory.CreatClient always creates a client with SSL true, even if you configure it as false;
Expected Behavior
Current Behavior
// after this client will be configured with action:
configureClient(client);
// In the method there is no action for the false case. So when you created client before, its already created with SSL true
The text was updated successfully, but these errors were encountered: