        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-07-07 20:37:30.890625000 +1000
++++ axTLS/httpd/awhttpd/main.c	2006-07-22 16:54:31.562500000 +1000
 @@ -11,7 +11,6 @@
  #include <string.h>
  #include <sys/types.h>

 
   cn->state = STATE_DOING_DIR;
 
@@ -134,36 +148,48 @@
 
 void procdodir(struct connstruct *cn) {
 

 
   } else if (strcmp(words[0], "Host:")==0) {
 
@@ -80,24 +80,32 @@
     if (isdigit(*words[1]) == 0) return 1;
 
     cn->offset = atoi(words[1]);
-
+  } else if (strcmp(words[0], "Connection:")==0 &&
+                strcmp(words[1], "close")==0) {
+      cn->close_when_done = 1;
+  } else if (strcmp(words[0], "If-Modified-Since:")==0) {
+      /* TODO: parse this date properly with getdate() or similar */
+      cn->modified_since = 1;
   }
 
   return 1;
 
