diff --git a/src/DARE-API/Services/ConsumeInternalMessageService.cs b/src/DARE-API/Services/ConsumeInternalMessageService.cs index 6eae4e7b7..04b4485df 100644 --- a/src/DARE-API/Services/ConsumeInternalMessageService.cs +++ b/src/DARE-API/Services/ConsumeInternalMessageService.cs @@ -95,9 +95,9 @@ private void Process(IMessage message, MessageReceivedInfo info) { string fileName = Path.GetFileName(uri.LocalPath); - Log.Information("{Function} Full file loc {File}, Incoming URL {URL}, our minio {Minio}", "Process", fileName, uri.Scheme + ":\\" + uri.Host + ":" + uri.Port, _minioSettings.AdminConsole); + Log.Information("{Function} Full file loc {File}, Incoming URL {URL}, our minio {Minio}", "Process", fileName, uri.Scheme.ToLower() + "://" + uri.Host.ToLower() + ":" + uri.Port, _minioSettings.AdminConsole.ToLower()); messageMQ.Key = fileName; - if (uri.Scheme + "://" + uri.Host + ":" + uri.Port != _minioSettings.AdminConsole) + if (uri.Scheme.ToLower() + "://" + uri.Host.ToLower() + ":" + uri.Port != _minioSettings.AdminConsole.ToLower()) { Log.Information("{Function} Copying external", "Process"); _minioHelper.RabbitExternalObject(messageMQ);