Skip to content
Snippets Groups Projects
Verified Commit 44f03d03 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chorse comments

parent e44111ee
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,7 @@ type headerParser struct { ...@@ -17,6 +17,7 @@ type headerParser struct {
wildCard string wildCard string
} }
//
func newHeaderParser(header http.Header, hasSlashVal bool) *headerParser { func newHeaderParser(header http.Header, hasSlashVal bool) *headerParser {
hp := &headerParser{header: header, hasSlashVal: hasSlashVal, defaultQ: 1.0} hp := &headerParser{header: header, hasSlashVal: hasSlashVal, defaultQ: 1.0}
...@@ -136,6 +137,7 @@ func (p headerParser) selectOffer(offers []string, specs specs) string { ...@@ -136,6 +137,7 @@ func (p headerParser) selectOffer(offers []string, specs specs) string {
return bestOffer return bestOffer
} }
//
func formatHeaderVal(val string) string { func formatHeaderVal(val string) string {
return strings.ToLower(strings.Replace(val, " ", "", -1)) return strings.ToLower(strings.Replace(val, " ", "", -1))
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment