]> cat aescling's git repositories - httpd-execline.git/commitdiff
Remove undocumented dependency on hoc(1)
authorcat æscling <11325618-aescling@users.noreply.gitlab.com>
Thu, 3 Aug 2023 01:08:12 +0000 (21:08 -0400)
committercat æscling <11325618-aescling@users.noreply.gitlab.com>
Thu, 3 Aug 2023 01:11:23 +0000 (21:11 -0400)
The build breaks in 9base. It is only needed once anyway

This removes functionality we SHOULD do; TODO: fix this

visible-to-httpd/binaries/http-error-response.execline

index 8068aae21e94590848908290a5b924c034b67c46..dc9da3064cdfa4ac36d8afa14e9f905c75aa9baa 100755 (executable)
@@ -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
 "