solution people with internet by pidgeon

This commit is contained in:
rootdarkarchon
2023-04-22 22:12:32 +02:00
parent fe49842a9e
commit 170ab12155
2 changed files with 2 additions and 2 deletions

View File

@@ -308,7 +308,7 @@ public sealed class IpcManager : DisposableMediatorSubscriberBase
{
if (!CheckHonorificApi()) return string.Empty;
(string? title, bool isPrefix) = _honorificGetLocalCharacterTitle.InvokeFunc();
return $"{(isPrefix ? 1 : 0)}{title}";
return string.IsNullOrEmpty(title) ? string.Empty : $"{(isPrefix ? 1 : 0)}{title}";
}
public async Task HonorificSetTitle(IntPtr character, string honorificData)

View File

@@ -23,7 +23,7 @@ public class FileTransferOrchestrator : DisposableMediatorSubscriberBase
_mareConfig = mareConfig;
_serverManager = serverManager;
_httpClient = new();
_httpClient.Timeout = TimeSpan.FromSeconds(300);
_httpClient.Timeout = TimeSpan.FromSeconds(3000);
var ver = Assembly.GetExecutingAssembly().GetName().Version;
_httpClient.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue("MareSynchronos", ver!.Major + "." + ver!.Minor + "." + ver!.Build));