diff options
| author | Shulhan <ms@kilabit.info> | 2019-01-04 07:55:43 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2019-01-04 13:14:43 +0700 |
| commit | 49e7d14699b299dffa835b2a9240e2f03e8d0dd3 (patch) | |
| tree | e33153bfb4bf8aa28352561079e214444e8f9a6a /config.go | |
| parent | 65e1848bd4aec12390fe15ebd83ff4bc53a8afec (diff) | |
| download | haminer-49e7d14699b299dffa835b2a9240e2f03e8d0dd3.tar.xz | |
config: change the capture request header separator to comma
This is to make it consistent with separator on "accept_backend".
Diffstat (limited to 'config.go')
| -rw-r--r-- | config.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -131,8 +131,8 @@ func (cfg *Config) ParseAcceptBackend(v string) { } // -// ParseCaptureRequestHeader Parse request header names where each name is -// separated by "|". +// ParseCaptureRequestHeader parse request header names where each name is +// separated by ",". // func (cfg *Config) ParseCaptureRequestHeader(v string) { v = strings.TrimSpace(v) @@ -140,7 +140,7 @@ func (cfg *Config) ParseCaptureRequestHeader(v string) { return } - headers := strings.Split(v, "|") + headers := strings.Split(v, ",") for x := 0; x < len(headers); x++ { headers[x] = strings.TrimSpace(headers[x]) if len(headers[x]) == 0 { |
