← Commit list

8bb21af72

Denis Vlasenko
Denis Vlasenko
2007-02-02
FAILED Duration: 10s

Subject

httpd: directory indexer example doesn't need piping thru dd anymore

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd_index_cgi_example+0 -5
@@ -23,10 +23,6 @@ cd "${QUERY_STRING:1}" 2>/dev/null || exit 1
f=`dirname "$QUERY_STRING"`
test "$f" = "/" && f=""
-# Pipe thru dd (need to write header as single write(),
-# or else httpd doesn't see "Content-type: text/html"
-# in first read() and decides that it is not html)
-{
printf "%s" \
$'HTTP/1.0 200 OK\r\n'\
$'Content-type: text/html\r\n\r\n'\
@@ -52,4 +48,3 @@ for f in *; do
}
done
printf "</table></pre><hr></body></html>"$'\r\n'
-} | dd bs=4k