 +#endif  /* CONFIG_STANDARD_AWHTTPD */
 diff -Naur awhttpd/conn.c axTLS/httpd/awhttpd/conn.c
 --- awhttpd/conn.c	2004-12-07 16:11:02.000000000 +1000
-+++ axTLS/httpd/awhttpd/conn.c	2006-06-28 20:38:44.921875000 +1000
++++ axTLS/httpd/awhttpd/conn.c	2006-07-07 20:37:30.890625000 +1000
 @@ -9,15 +9,11 @@
  
  #include <stdio.h>

       my_strncpy(cn->actualfile, tbuf, MAXREQUESTLENGTH);
diff -Naur awhttpd/main.c axTLS/httpd/awhttpd/main.c
--- awhttpd/main.c	2005-06-04 14:09:52.000000000 +1000
+++ axTLS/httpd/awhttpd/main.c	2006-06-28 20:38:44.937500000 +1000
@@ -11,7 +11,6 @@
 #include <string.h>
 #include <sys/types.h>

   // If the browser doesn't specify a virtual host, the client will
   // see "http://default/thedir/" instead of "http://thehost.com/thedir/"
   // Consider this punishment for using such an old browser.
-  snprintf(buf, sizeof(buf), "HTTP/1.1 200 OK\nContent-Type: text/html\n\n<HTML><BODY>\n<TITLE>Directory Listing</TITLE>\n<H2>Directory listing of http://%s%s</H2><BR>\n", cn->virtualhostreq, cn->filereq);
-  write(cn->networkdesc, buf, strlen(buf));
+  snprintf(buf, sizeof(buf), "HTTP/1.1 200 OK\nContent-Type: text/html\n\n<HTML><BODY>\n<TITLE>Directory Listing</TITLE>\n<H2>Directory listing of %s://%s%s</H2><BR>\n", cn->is_ssl ? "https" : "http", cn->virtualhostreq, cn->filereq);
+  special_write(cn, buf, strlen(buf));
 
   cn->state = STATE_DOING_DIR;
