mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
Check for RISC OS CSS filetype in case we have got redirected (ie. we are running from
the SVN tree and using resource: addressing) svn path=/trunk/netsurf/; revision=12041
This commit is contained in:
parent
262db10204
commit
0fc9da23f6
@ -51,6 +51,17 @@ const char *fetch_filetype(const char *unix_path)
|
|||||||
found = TRUE;
|
found = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Have a quick check for the RISC OS CSS filetype. Some of the redirects
|
||||||
|
* caused by links in the SVN tree prevent NetSurf from reading the MIME
|
||||||
|
* type from the icon (step two, below).
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(strncmp(unix_path + strlen(unix_path) - 4, ",f79", 4) == 0)
|
||||||
|
{
|
||||||
|
strcpy(mimetype,"text/css");
|
||||||
|
found = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* Secondly try getting a tooltype "MIMETYPE" and use that as the MIME type.
|
/* Secondly try getting a tooltype "MIMETYPE" and use that as the MIME type.
|
||||||
Will fail over to default icons if the file doesn't have a real icon. */
|
Will fail over to default icons if the file doesn't have a real icon. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user