Skip to content

Commit c89cdbd

Browse files
committed
Idiots, idiots everywhere
1 parent ec3b6ac commit c89cdbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ArchiSteamFarm/IPC/OpenApi/DocumentTransformer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,10 @@ public Task TransformAsync(OpenApiDocument document, OpenApiDocumentTransformerC
111111
document.Paths.Add(
112112
$"/{nlogEndpont.RelativePath}", new OpenApiPathItem {
113113
Operations = new Dictionary<HttpMethod, OpenApiOperation>(2) {
114+
// HTTP/2 use CONNECT for that endpoint
114115
{ HttpMethod.Connect, operation },
115116

116-
// This is in fact incorrect, however, swagger ui does not display connect-only methods, so we'll add fake GET as well
117+
// But HTTP/1.1 use GET with upgrade, so this is also valid
117118
{ HttpMethod.Get, operation }
118119
}
119120
}

0 commit comments

Comments
 (0)