From 699eefe31720e568c4d0562ddd3da10f71d63bca Mon Sep 17 00:00:00 2001 From: Doug Johnson Date: Tue, 26 Jan 2016 21:56:55 +0000 Subject: [PATCH] add flag to enable debugging of http output --- settings.go | 1 + 1 file changed, 1 insertion(+) diff --git a/settings.go b/settings.go index d572125..3671367 100644 --- a/settings.go +++ b/settings.go @@ -93,6 +93,7 @@ func init() { flag.BoolVar(&Settings.outputHTTPConfig.stats, "output-http-stats", false, "Report http output queue stats to console every 5 seconds.") flag.BoolVar(&Settings.outputHTTPConfig.OriginalHost, "http-original-host", false, "Normally gor replaces the Host http header with the host supplied with --output-http. This option disables that behavior, preserving the original Host header.") + flag.BoolVar(&Settings.outputHTTPConfig.Debug, "output-http-debug", false, "Enables http debug output.") flag.StringVar(&Settings.outputHTTPConfig.elasticSearch, "output-http-elasticsearch", "", "Send request and response stats to ElasticSearch:\n\tgor --input-raw :8080 --output-http staging.com --output-http-elasticsearch 'es_host:api_port/index_name'")