34940d00 by Donal Byrne Committed by astaxie

Remove unnecessary optional group flag '?' since has to match one of comma or end of string

1 parent 1a6ea693
...@@ -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.
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!