From c89cdbdad9cee8857f15de810cbfdd2aee514404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Sat, 27 Dec 2025 05:58:55 +0100 Subject: [PATCH] Idiots, idiots everywhere --- ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs b/ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs index 02c661ba9..3f22da4e8 100644 --- a/ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs +++ b/ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs @@ -111,9 +111,10 @@ internal sealed class DocumentTransformer : IOpenApiDocumentTransformer { document.Paths.Add( $"/{nlogEndpont.RelativePath}", new OpenApiPathItem { Operations = new Dictionary(2) { + // HTTP/2 use CONNECT for that endpoint { HttpMethod.Connect, operation }, - // This is in fact incorrect, however, swagger ui does not display connect-only methods, so we'll add fake GET as well + // But HTTP/1.1 use GET with upgrade, so this is also valid { HttpMethod.Get, operation } } }