From 150ea60f8cb960d41aca8d71bf5317a635c4e2a7 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/2configs/elm-packages-proxy.nix') diff --git a/tv/2configs/elm-packages-proxy.nix b/tv/2configs/elm-packages-proxy.nix index ecced3d..9493a40 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