summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-09-15 21:54:20 +0200
committertv <tv@krebsco.de>2020-09-15 21:54:20 +0200
commitb455a8745705a07e0ae11f86b416322f1b3c917f (patch)
tree79d4caab5076e88200694f756cdc9a4aefe3c512
parent780808d284b690866b876e1ed2da3bd50369457e (diff)
cat only when verbosev1.2.71.2.7
-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?