mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-30 10:13:08 +03:00
017fc4eb4b
New file headers. svn path=/import/netsurf/; revision=190
25 lines
632 B
C
25 lines
632 B
C
/*
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
* Licensed under the GNU General Public License,
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include "netsurf/content/fetch.h"
|
|
#include "netsurf/utils/log.h"
|
|
#include "netsurf/utils/utils.h"
|
|
|
|
/**
|
|
* filetype -- determine the MIME type of a local file
|
|
*/
|
|
|
|
const char *fetch_filetype(const char *unix_path)
|
|
{
|
|
LOG(("unix path %s", unix_path));
|
|
if (strcasecmp(unix_path, "home/james/Projects/netsurf/CSS") == 0)
|
|
return "text/css";
|
|
return "text/html";
|
|
}
|
|
|