From fbb2ae7f5f46be96acbfd1c07e5532e242d2b573 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 11 Oct 2008 22:01:26 +0000 Subject: Fix problem with file uploads to amigans.net always returning error to the effect of: files of type text/plain cannot be uploaded svn path=/trunk/netsurf/; revision=5544 --- amiga/filetype.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'amiga') diff --git a/amiga/filetype.c b/amiga/filetype.c index d15890ce4..f22ab26f5 100644 --- a/amiga/filetype.c +++ b/amiga/filetype.c @@ -1,5 +1,6 @@ /* * Copyright 2003 James Bursa + * Copyright 2008 Chris Young * * This file is part of NetSurf, http://www.netsurf-browser.org/ * @@ -51,5 +52,5 @@ const char *fetch_filetype(const char *unix_path) char *fetch_mimetype(const char *ro_path) { - return strdup("text/plain"); + return strdup(fetch_filetype(ro_path)); } -- cgit v1.2.3