diff options
author | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-20 22:28:01 -0400 |
---|---|---|
committer | cel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519> | 2020-05-20 22:28:01 -0400 |
commit | ebd7c25ca229268578b858a03f6f4ee89216841b (patch) | |
tree | 393c294be7b4ce3b8ea882b1c9a61329326ad3c9 | |
parent | d2a9afb32e9a39e4643737812a7d474b0b5753d8 (diff) |
Handle type in printf properly
-rwxr-xr-x | gemini.filter.dpi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemini.filter.dpi b/gemini.filter.dpi index 5f51efe..4d50a65 100755 --- a/gemini.filter.dpi +++ b/gemini.filter.dpi @@ -155,7 +155,7 @@ serve_success() { type=$1 case "$type" in text/gemini*) render_gemini;; - *) printf "Content-type: $type\r\n\r\n"; cat;; + *) printf "Content-type: %s\r\n\r\n" "$type"; cat;; esac } |