summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhtgen4
1 files changed, 3 insertions, 1 deletions
diff --git a/htgen b/htgen
index 80f5f00..a1f459f 100755
--- a/htgen
+++ b/htgen
@@ -78,9 +78,11 @@ eval "$(echo "$Request_Line" | sed -rn '
# EOF
## debug
-cat 1>&2 <<EOF
+if test "$HTGEN_VERBOSE" = true; then
+ cat 1>&2 <<EOF
$Method $Request_URI HTTP/$HTTP_Version
EOF
+fi
## }}}
## Parse HTTP-Headers. {{{
# TODO support https://tools.ietf.org/html/rfc7230#section-3.2.4, obs-fold?