Skip to content

Commit 8ced675

Browse files
authored
Merge pull request #10102 from austince/fix/golang/type-checks
golang: correct content-type regexps
2 parents c6d2e8d + aaca1a1 commit 8ced675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/swagger-codegen/src/main/resources/go/client.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
)
2626

2727
var (
28-
jsonCheck = regexp.MustCompile("(?i:[application|text]/json)")
29-
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
28+
jsonCheck = regexp.MustCompile("(?i:(?:application|text)/json)")
29+
xmlCheck = regexp.MustCompile("(?i:(?:application|text)/xml)")
3030
)
3131

3232
// APIClient manages communication with the {{appName}} API v{{version}}

0 commit comments

Comments
 (0)