mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
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:
parent
1978e62d05
commit
fbb2ae7f5f
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user