Remove unnecessary optional group flag '?' since has to match one of comma or end of string
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -33,7 +33,7 @@ import ( | ... | @@ -33,7 +33,7 @@ import ( |
| 33 | var ( | 33 | var ( |
| 34 | acceptsHtmlRegex = regexp.MustCompile(`(text/html|application/xhtml\+xml)(?:,|$)`) | 34 | acceptsHtmlRegex = regexp.MustCompile(`(text/html|application/xhtml\+xml)(?:,|$)`) |
| 35 | acceptsXmlRegex = regexp.MustCompile(`(application/xml|text/xml)(?:,|$)`) | 35 | acceptsXmlRegex = regexp.MustCompile(`(application/xml|text/xml)(?:,|$)`) |
| 36 | acceptsJsonRegex = regexp.MustCompile(`(application/json)(?:,|$)?`) | 36 | acceptsJsonRegex = regexp.MustCompile(`(application/json)(?:,|$)`) |
| 37 | ) | 37 | ) |
| 38 | 38 | ||
| 39 | // BeegoInput operates the http request header, data, cookie and body. | 39 | // BeegoInput operates the http request header, data, cookie and body. | ... | ... |
-
Please register or sign in to post a comment