From: cat æscling <11325618-aescling@users.noreply.gitlab.com> Date: Thu, 3 Aug 2023 01:08:12 +0000 (-0400) Subject: Remove undocumented dependency on hoc(1) X-Git-Tag: v1.0.0~4 X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=1c69544859841c22ee221ea7889417d3b1932c51;p=httpd-execline.git 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 --- 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 "