From b8e530f2f9f5c126034a1338d7c1d69be78c4e49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Loegel?= Date: Tue, 2 Jul 2024 11:10:08 +0200 Subject: [PATCH] PB-33917 - On some version of (presumably) .Net, the HTTP requests are made but the response is not sent to the background page --- passbolt/Services/HttpService/HttpService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbolt/Services/HttpService/HttpService.cs b/passbolt/Services/HttpService/HttpService.cs index 06bef5f..dd93416 100644 --- a/passbolt/Services/HttpService/HttpService.cs +++ b/passbolt/Services/HttpService/HttpService.cs @@ -188,7 +188,7 @@ public void SendResponseToWebview(CoreWebView2 sender, CoreWebView2WebResourceRe CoreWebView2WebResourceResponse webView2WebResourceResponse = sender.Environment.CreateWebResourceResponse( content, (int)response.StatusCode, - response.ReasonPhrase != null ? response.ReasonPhrase : response.StatusCode.ToString(), + !string.IsNullOrEmpty(response.ReasonPhrase) ? response.ReasonPhrase : response.StatusCode.ToString(), string.Join('\n', headers)); resource.Response = webView2WebResourceResponse;