diff options
| author | JP Dillingham <jp@dillingham.me> | 2025-11-29 14:20:13 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2025-11-29 14:20:13 -0600 |
| commit | 368cc845e147ed1badff14e76dd393449e4182e3 (patch) | |
| tree | 35f14266d9ee84d4bd9a1879341790396ea49d8f /src/slskd/Program.cs | |
| parent | d81404d6f8dfdfcb1d29dcf3a5e6be230046f138 (diff) | |
| download | slskd-368cc845e147ed1badff14e76dd393449e4182e3.tar.gz | |
make content negotiation work properly
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 3 |
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); |
