We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 390226b commit 9aeecc2Copy full SHA for 9aeecc2
_examples/advanced-generic-openapi31/raw_body.go
@@ -2,6 +2,7 @@ package main
2
3
import (
4
"context"
5
+
6
"github.com/swaggest/usecase"
7
)
8
response/gzip/middleware.go
@@ -215,9 +215,10 @@ func (rw *gzipResponseWriter) writeHeader(statusCode int) { //nolint:funlen
215
"application/manifest+json",
216
"application/ld+json",
217
"application/graphql+json",
218
+ "application/gpx+xml",
219
"application/geo+json":
220
default:
- if !strings.HasSuffix(ct, "+json") {
221
+ if !strings.HasSuffix(ct, "+json") && !strings.HasSuffix(ct, "+xml") {
222
rw.disableCompression = true
223
}
224
0 commit comments