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 } } }