From 0a5554cd488af0958bc9fb01abdcae3644cbdb0f Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 5 Dec 2020 12:38:30 +0100 Subject: tv elm-package-proxy: add \n to string reponse --- tv/2configs/elm-packages-proxy.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tv') diff --git a/tv/2configs/elm-packages-proxy.nix b/tv/2configs/elm-packages-proxy.nix index ecced3da2..9493a40b0 100644 --- a/tv/2configs/elm-packages-proxy.nix +++ b/tv/2configs/elm-packages-proxy.nix @@ -98,7 +98,7 @@ in { printf "HTTP/1.1 $status_code $status_reason\r\n" printf 'Connection: close\r\n' - printf 'Content-Length: %d\r\n' ''${#response_body} + printf 'Content-Length: %d\r\n' "$(expr ''${#response_body} + 1)" printf 'Content-Type: %s\r\n' "$content_type" printf 'Server: %s\r\n' "$Server" printf '\r\n' -- cgit v1.2.3