From 1c69544859841c22ee221ea7889417d3b1932c51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?cat=20=C3=A6scling?= <11325618-aescling@users.noreply.gitlab.com> Date: Wed, 2 Aug 2023 21:08:12 -0400 Subject: [PATCH] Remove undocumented dependency on hoc(1) The build breaks in 9base. It is only needed once anyway This removes functionality we SHOULD do; TODO: fix this --- .../binaries/http-error-response.execline | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/visible-to-httpd/binaries/http-error-response.execline b/visible-to-httpd/binaries/http-error-response.execline index 8068aae..dc9da30 100755 --- a/visible-to-httpd/binaries/http-error-response.execline +++ b/visible-to-httpd/binaries/http-error-response.execline @@ -64,21 +64,11 @@ Date: "${Date}${extra_headers}" } # default: no error status page on file; use a hardcoded default - # (why does `hoc -e` not work?) - backtick -n -E Content-Length { - backtick -E -i -n message_length { - pipeline { s6-echo -n -- ${2} } - wc -c - } - - pipeline { s6-echo -- ${message_length}"*2 + 288" } - hoc - } + # TODO: Content-Length if { s6-echo -n -- "HTTP/1.1 "${1}" "${2}"\r Content-Type: application/xhtml+xml; charset=utf-8\r -Content-Length: "${Content-Length}"\r Date: "${Date}${extra_headers}" \r " -- 2.47.3