mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-28 07:20:16 +00:00
* rtems_webserver/NOTES, rtems_webserver/asp.c, rtems_webserver/balloc.c, rtems_webserver/default.c, rtems_webserver/ej.h, rtems_webserver/ejIntrn.h, rtems_webserver/ejlex.c, rtems_webserver/ejparse.c, rtems_webserver/emfdb.c, rtems_webserver/emfdb.h, rtems_webserver/form.c, rtems_webserver/h.c, rtems_webserver/handler.c, rtems_webserver/license.txt, rtems_webserver/md5.h, rtems_webserver/md5c.c, rtems_webserver/mime.c, rtems_webserver/misc.c, rtems_webserver/ringq.c, rtems_webserver/rom.c, rtems_webserver/security.c, rtems_webserver/sock.c, rtems_webserver/sym.c, rtems_webserver/uemf.c, rtems_webserver/uemf.h, rtems_webserver/um.c, rtems_webserver/um.h, rtems_webserver/url.c, rtems_webserver/value.c, rtems_webserver/wbase64.c, rtems_webserver/webcomp.c, rtems_webserver/webpage.c, rtems_webserver/webrom.c, rtems_webserver/webs.c, rtems_webserver/webs.h, rtems_webserver/websuemf.c, rtems_webserver/wsIntrn.h: Update to GoAhead Webserver 2.1.4. The following URL is the release notes from GoAhead. http://data.goahead.com/Software/Webserver/2.1.4/release.htm I have only done a minimal amount of testing (i.e. the network demo program works fine). Please try this out and let me know if it works. The patch needs to be applied on the c/src/libnetworking/rtems_webserver directory.
117 lines
3.9 KiB
C
117 lines
3.9 KiB
C
/*
|
|
* mime.c -- Web server mime types
|
|
*
|
|
* Copyright (c) GoAhead Software Inc., 1995-2000. All Rights Reserved.
|
|
*
|
|
* See the file "license.txt" for usage and redistribution license requirements
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
/******************************** Description *********************************/
|
|
|
|
/*
|
|
* Mime types and file extensions. This module maps URL extensions to
|
|
* content types.
|
|
*/
|
|
|
|
/********************************* Includes ***********************************/
|
|
|
|
#include "wsIntrn.h"
|
|
|
|
/******************************** Global Data *********************************/
|
|
/*
|
|
* Addd entries to the MimeList as required for your content
|
|
*/
|
|
|
|
|
|
websMimeType websMimeList[] = {
|
|
{ T("application/java"), T(".class") },
|
|
{ T("application/java"), T(".jar") },
|
|
{ T("text/html"), T(".asp") },
|
|
{ T("text/html"), T(".htm") },
|
|
{ T("text/html"), T(".html") },
|
|
{ T("image/gif"), T(".gif") },
|
|
{ T("image/jpeg"), T(".jpg") },
|
|
{ T("text/css"), T(".css") },
|
|
{ T("text/plain"), T(".txt") },
|
|
{ T("application/x-javascript"), T(".js") },
|
|
|
|
#ifdef MORE_MIME_TYPES
|
|
{ T("application/binary"), T(".exe") },
|
|
{ T("application/compress"), T(".z") },
|
|
{ T("application/gzip"), T(".gz") },
|
|
{ T("application/octet-stream"), T(".bin") },
|
|
{ T("application/oda"), T(".oda") },
|
|
{ T("application/pdf"), T(".pdf") },
|
|
{ T("application/postscript"), T(".ai") },
|
|
{ T("application/postscript"), T(".eps") },
|
|
{ T("application/postscript"), T(".ps") },
|
|
{ T("application/rtf"), T(".rtf") },
|
|
{ T("application/x-bcpio"), T(".bcpio") },
|
|
{ T("application/x-cpio"), T(".cpio") },
|
|
{ T("application/x-csh"), T(".csh") },
|
|
{ T("application/x-dvi"), T(".dvi") },
|
|
{ T("application/x-gtar"), T(".gtar") },
|
|
{ T("application/x-hdf"), T(".hdf") },
|
|
{ T("application/x-latex"), T(".latex") },
|
|
{ T("application/x-mif"), T(".mif") },
|
|
{ T("application/x-netcdf"), T(".nc") },
|
|
{ T("application/x-netcdf"), T(".cdf") },
|
|
{ T("application/x-ns-proxy-autoconfig"), T(".pac") },
|
|
{ T("application/x-patch"), T(".patch") },
|
|
{ T("application/x-sh"), T(".sh") },
|
|
{ T("application/x-shar"), T(".shar") },
|
|
{ T("application/x-sv4cpio"), T(".sv4cpio") },
|
|
{ T("application/x-sv4crc"), T(".sv4crc") },
|
|
{ T("application/x-tar"), T(".tar") },
|
|
{ T("application/x-tcl"), T(".tcl") },
|
|
{ T("application/x-tex"), T(".tex") },
|
|
{ T("application/x-texinfo"), T(".texinfo") },
|
|
{ T("application/x-texinfo"), T(".texi") },
|
|
{ T("application/x-troff"), T(".t") },
|
|
{ T("application/x-troff"), T(".tr") },
|
|
{ T("application/x-troff"), T(".roff") },
|
|
{ T("application/x-troff-man"), T(".man") },
|
|
{ T("application/x-troff-me"), T(".me") },
|
|
{ T("application/x-troff-ms"), T(".ms") },
|
|
{ T("application/x-ustar"), T(".ustar") },
|
|
{ T("application/x-wais-source"), T(".src") },
|
|
{ T("application/zip"), T(".zip") },
|
|
{ T("audio/basic"), T(".au snd") },
|
|
{ T("audio/x-aiff"), T(".aif") },
|
|
{ T("audio/x-aiff"), T(".aiff") },
|
|
{ T("audio/x-aiff"), T(".aifc") },
|
|
{ T("audio/x-wav"), T(".wav") },
|
|
{ T("audio/x-wav"), T(".ram") },
|
|
{ T("image/ief"), T(".ief") },
|
|
{ T("image/jpeg"), T(".jpeg") },
|
|
{ T("image/jpeg"), T(".jpe") },
|
|
{ T("image/tiff"), T(".tiff") },
|
|
{ T("image/tiff"), T(".tif") },
|
|
{ T("image/x-cmu-raster"), T(".ras") },
|
|
{ T("image/x-portable-anymap"), T(".pnm") },
|
|
{ T("image/x-portable-bitmap"), T(".pbm") },
|
|
{ T("image/x-portable-graymap"), T(".pgm") },
|
|
{ T("image/x-portable-pixmap"), T(".ppm") },
|
|
{ T("image/x-rgb"), T(".rgb") },
|
|
{ T("image/x-xbitmap"), T(".xbm") },
|
|
{ T("image/x-xpixmap"), T(".xpm") },
|
|
{ T("image/x-xwindowdump"), T(".xwd") },
|
|
{ T("text/html"), T(".cfm") },
|
|
{ T("text/html"), T(".shtm") },
|
|
{ T("text/html"), T(".shtml") },
|
|
{ T("text/richtext"), T(".rtx") },
|
|
{ T("text/tab-separated-values"), T(".tsv") },
|
|
{ T("text/x-setext"), T(".etx") },
|
|
{ T("video/mpeg"), T(".mpeg mpg mpe") },
|
|
{ T("video/quicktime"), T(".qt") },
|
|
{ T("video/quicktime"), T(".mov") },
|
|
{ T("video/x-msvideo"), T(".avi") },
|
|
{ T("video/x-sgi-movie"), T(".movie") },
|
|
#endif
|
|
{ NULL, NULL},
|
|
};
|
|
|
|
/*****************************************************************************/
|