summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/htgen-imgur/src
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-11-16 17:44:06 +0100
committerlassulus <lassulus@lassul.us>2020-11-16 17:44:06 +0100
commitd11334c961c92cdd2f3bfbe281861c0a87adddd0 (patch)
tree2d4bbdb235d5982bb341523cdcad6897f26d5dae /krebs/5pkgs/simple/htgen-imgur/src
parent32b9762495f44c0869f623c569fcb1cbea03c486 (diff)
parent90528c140893a5414e41e4e68f46be797a716416 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'krebs/5pkgs/simple/htgen-imgur/src')
-rw-r--r--krebs/5pkgs/simple/htgen-imgur/src/htgen-imgur20
1 files changed, 8 insertions, 12 deletions
diff --git a/krebs/5pkgs/simple/htgen-imgur/src/htgen-imgur b/krebs/5pkgs/simple/htgen-imgur/src/htgen-imgur
index f30265ba7..af092d007 100644
--- a/krebs/5pkgs/simple/htgen-imgur/src/htgen-imgur
+++ b/krebs/5pkgs/simple/htgen-imgur/src/htgen-imgur
@@ -27,15 +27,13 @@ basic_response() {(
}
')
- if test "$HTGEN_VERBOSE" = true; then
- printf "HTTP/1.1 $status_code $status_reason\r\n"
- printf 'Connection: close\r\n'
- printf 'Content-Length: %d\r\n' $(expr ${#response_body} + 1)
- printf 'Content-Type: application/json; charset=UTF-8\r\n'
- printf 'Server: %s\r\n' "$Server"
- printf '\r\n'
- printf '%s\n' "$response_body"
- fi
+ printf "HTTP/1.1 $status_code $status_reason\r\n"
+ printf 'Connection: close\r\n'
+ printf 'Content-Length: %d\r\n' $(expr ${#response_body} + 1)
+ printf 'Content-Type: application/json; charset=UTF-8\r\n'
+ printf 'Server: %s\r\n' "$Server"
+ printf '\r\n'
+ printf '%s\n' "$response_body"
)}
@@ -80,9 +78,7 @@ case "$Method $path" in
trap "rm $content >&2" EXIT
case ${req_expect-} in 100-continue)
- if test "$HTGEN_VERBOSE" = true; then
- printf 'HTTP/1.1 100 Continue\r\n\r\n'
- fi
+ printf 'HTTP/1.1 100 Continue\r\n\r\n'
esac
head -c $req_content_length > $content