splits header string in sorted slice
(header string)
| 240 | |
| 241 | // splits header string in sorted slice |
| 242 | func sortHeader(header string) string { |
| 243 | h := strings.Split(header, ",") |
| 244 | for i, v := range h { |
| 245 | h[i] = strings.TrimSpace(v) |
| 246 | } |
| 247 | sort.Strings(h) |
| 248 | return strings.Join(h, ",") |
| 249 | } |
| 250 | |
| 251 | func getDecompressor(req *http.Request) decompressor { |
| 252 | if req.Header.Get("Content-Encoding") == "gzip" { |
no outgoing calls