minor changes

This commit is contained in:
Mantas Matelis
2014-05-27 15:18:24 -04:00
parent a9a08860b4
commit bf786e5922
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func (h *HTTPHeaderFilters) Set(value string) error {
}
r, err := regexp.Compile(valArr[1])
if err != nil {
return errors.New("could not compile regexp.")
return err
}
*h = append(*h, headerFilter{name: valArr[0], regexp: r})
+1 -1
View File
@@ -23,7 +23,7 @@ func (h *HTTPHeaderHashFilters) String() string {
func (h *HTTPHeaderHashFilters) Set(value string) error {
valArr := strings.SplitN(value, ":", 2)
if len(valArr) < 2 {
return errors.New("need both header and value, colon-delimited (ex. user_id:^169$).")
return errors.New("need both header and value, colon-delimited (ex. user_id:1/2).")
}
fracArr := strings.Split(valArr[1], "/")