From b38d53248c9954a03d03ae6277546b7d697c28c8 Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 16 Mar 2026 13:41:04 +0100 Subject: [PATCH] Force HTTP/1.1 for NTLM when UseHttp1ForNtlm is enabled Added logic to set HTTP/1.1 and exact version policy for NTLM authentication requests when the UseHttp1ForNtlm option is true. This ensures compatibility with NTLM endpoints requiring HTTP/1.1. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index 01e1703..1e5b36f 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -98,6 +98,11 @@ public class InvokeRecActionViewCommandHandler( case EndpointAuthType.NtlmAuth: if (!string.IsNullOrWhiteSpace(action.EndpointAuthUsername)) { + if (_options.UseHttp1ForNtlm) + { + httpReq.Version = HttpVersion.Version11; + httpReq.VersionPolicy = HttpVersionPolicy.RequestVersionExact; + } var endpointAuthPassword = action.EndpointAuthPassword #if DEBUG ?.Replace("%NTLM_PW%", config?.GetValue("%NTLM_PW%"))