mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Idiots, idiots everywhere
This commit is contained in:
@@ -111,9 +111,10 @@ internal sealed class DocumentTransformer : IOpenApiDocumentTransformer {
|
|||||||
document.Paths.Add(
|
document.Paths.Add(
|
||||||
$"/{nlogEndpont.RelativePath}", new OpenApiPathItem {
|
$"/{nlogEndpont.RelativePath}", new OpenApiPathItem {
|
||||||
Operations = new Dictionary<HttpMethod, OpenApiOperation>(2) {
|
Operations = new Dictionary<HttpMethod, OpenApiOperation>(2) {
|
||||||
|
// HTTP/2 use CONNECT for that endpoint
|
||||||
{ HttpMethod.Connect, operation },
|
{ 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 }
|
{ HttpMethod.Get, operation }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user