diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-10-11 22:01:26 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-10-11 22:01:26 +0000 |
commit | fbb2ae7f5f46be96acbfd1c07e5532e242d2b573 (patch) | |
tree | 93823cf9822df6c126e60a746099c6c150298853 /amiga | |
parent | 1978e62d05b983740119d7628e9bf768b5436942 (diff) | |
download | netsurf-fbb2ae7f5f46be96acbfd1c07e5532e242d2b573.tar.gz netsurf-fbb2ae7f5f46be96acbfd1c07e5532e242d2b573.tar.bz2 |
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
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/filetype.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <bursa@users.sourceforge.net> + * Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk> * * 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)); } |