We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6d2e8d + aaca1a1 commit 8ced675Copy full SHA for 8ced675
modules/swagger-codegen/src/main/resources/go/client.mustache
@@ -25,8 +25,8 @@ import (
25
)
26
27
var (
28
- jsonCheck = regexp.MustCompile("(?i:[application|text]/json)")
29
- xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
+ jsonCheck = regexp.MustCompile("(?i:(?:application|text)/json)")
+ xmlCheck = regexp.MustCompile("(?i:(?:application|text)/xml)")
30
31
32
// APIClient manages communication with the {{appName}} API v{{version}}
0 commit comments