1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-23 01:10:55 +00:00

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

This commit is contained in:
Donal Byrne 2015-03-25 14:54:39 +01:00
parent 185ee872c4
commit 06b5c7f644

View File

@ -33,7 +33,7 @@ import (
var ( var (
acceptsHtmlRegex = regexp.MustCompile(`(text/html|application/xhtml\+xml)(?:,|$)`) acceptsHtmlRegex = regexp.MustCompile(`(text/html|application/xhtml\+xml)(?:,|$)`)
acceptsXmlRegex = regexp.MustCompile(`(application/xml|text/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. // BeegoInput operates the http request header, data, cookie and body.