mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:10:54 +00:00
Remove unnecessary optional group flag '?' since has to match one of comma or end of string
This commit is contained in:
parent
1a6ea693b5
commit
34940d00c0
@ -33,7 +33,7 @@ import (
|
||||
var (
|
||||
acceptsHtmlRegex = regexp.MustCompile(`(text/html|application/xhtml\+xml)(?:,|$)`)
|
||||
acceptsXmlRegex = regexp.MustCompile(`(application/xml|text/xml)(?:,|$)`)
|
||||
acceptsJsonRegex = regexp.MustCompile(`(application/json)(?:,|$)?`)
|
||||
acceptsJsonRegex = regexp.MustCompile(`(application/json)(?:,|$)`)
|
||||
)
|
||||
|
||||
// BeegoInput operates the http request header, data, cookie and body.
|
||||
|
Loading…
Reference in New Issue
Block a user