--- filetype.c.orig	Tue Nov  9 16:23:24 1999
+++ filetype.c	Tue Sep 13 18:00:08 2005
@@ -36,5 +36,20 @@
     if (!stralloc_cats(contenttype,result)) _exit(21);
   }
 
   if (!stralloc_cats(contenttype,"\r\n")) _exit(21);
+
+  /* 
+   * PDF attachment directive modification
+   * by Kenji Rikitake 13-SEP-2005
+   * 
+   * see
+   * http://www.unrealtower.org/pdfdownload
+   * http://www.useit.com/alertbox/open_new_windows.html
+   * for the purpose of this modification
+   */
+
+  if (str_equal(result,"application/pdf")) {
+      if (!stralloc_cats(
+	  contenttype,"Content-disposition: Attachment\r\n")) _exit(21);
+  }
 }
