]> cat aescling's git repositories - httpd-execline.git/commitdiff
httpd.execline: fix: correct publicfile Content-Type override
authorcat æscling <11325618-aescling@users.noreply.gitlab.com>
Thu, 27 Jul 2023 04:48:53 +0000 (00:48 -0400)
committercat æscling <11325618-aescling@users.noreply.gitlab.com>
Thu, 27 Jul 2023 04:53:58 +0000 (00:53 -0400)
visible-to-httpd/binaries/httpd.execline

index 9be16f1e1db3a1082db56da2b61d49b83b71e9a5..028d82195c6c0d3a431c676586beec68d948d5a6 100755 (executable)
@@ -118,10 +118,10 @@ if -X -n -t {
                # `index.text=x:market` being served as `text/x.market`
                ifelse {
                        # this regex matches exactly what `publicfile` does
-                       eltest \\${extension} =~ "[a-zA-Z0-9]+=[^=]+$"
+                       eltest \${extension} =~ "([a-z]|[A-Z]|[0-9])+=[^=]+$"
                }
                {
-                       pipeline { s6-echo -n -- extension }
+                       pipeline { s6-echo -n -- ${extension} }
                        tr := ./
                }