summaryrefslogtreecommitdiff
path: root/debug/filetyped.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/filetyped.c')
-rw-r--r--debug/filetyped.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/debug/filetyped.c b/debug/filetyped.c
new file mode 100644
index 000000000..853e1e57e
--- /dev/null
+++ b/debug/filetyped.c
@@ -0,0 +1,21 @@
+/**
+ * $Id: filetyped.c,v 1.1 2003/06/21 13:18:00 bursa Exp $
+ */
+
+#include <stdlib.h>
+#include "netsurf/content/fetch.h"
+#include "netsurf/utils/log.h"
+#include "netsurf/utils/utils.h"
+
+/**
+ * filetype -- determine the MIME type of a local file
+ */
+
+const char *fetch_filetype(const char *unix_path)
+{
+ LOG(("unix path %s", unix_path));
+ if (strcasecmp(unix_path, "home/james/Projects/netsurf/CSS") == 0)
+ return "text/css";
+ return "text/html";
+}
+