aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-11-29 14:20:13 -0600
committerJP Dillingham <jp@dillingham.me>2025-11-29 14:20:13 -0600
commit368cc845e147ed1badff14e76dd393449e4182e3 (patch)
tree35f14266d9ee84d4bd9a1879341790396ea49d8f /src/slskd/Program.cs
parentd81404d6f8dfdfcb1d29dcf3a5e6be230046f138 (diff)
downloadslskd-368cc845e147ed1badff14e76dd393449e4182e3.tar.gz
make content negotiation work properly
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index c5646df8..3af09a42 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -903,6 +903,9 @@ namespace slskd
},
});
+ // allow endpoints marked with multiple content types in [Produces] to generate properly
+ options.OperationFilter<ContentNegotiationOperationFilter>();
+
if (IOFile.Exists(XmlDocumentationFile))
{
options.IncludeXmlComments(XmlDocumentationFile);