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
This commit is contained in:
Chris Young 2008-10-11 22:01:26 +00:00
parent 1978e62d05
commit fbb2ae7f5f

View File

@ -1,5 +1,6 @@
/* /*
* Copyright 2003 James Bursa <bursa@users.sourceforge.net> * 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/ * 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) char *fetch_mimetype(const char *ro_path)
{ {
return strdup("text/plain"); return strdup(fetch_filetype(ro_path));
} }