svn commit: trunk/busybox/networking

vda at busybox.net vda at busybox.net
Fri Feb 2 01:18:38 UTC 2007


Author: vda
Date: 2007-02-01 17:18:37 -0800 (Thu, 01 Feb 2007)
New Revision: 17711

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


Modified:
   trunk/busybox/networking/httpd_index_cgi_example


Changeset:
Modified: trunk/busybox/networking/httpd_index_cgi_example
===================================================================
--- trunk/busybox/networking/httpd_index_cgi_example	2007-02-02 01:17:52 UTC (rev 17710)
+++ trunk/busybox/networking/httpd_index_cgi_example	2007-02-02 01:18:37 UTC (rev 17711)
@@ -23,10 +23,6 @@
 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 @@
     }
 done
 printf "</table></pre><hr></body></html>"$'\r\n'
-} | dd bs=4k




More information about the busybox-cvs mailing list