Jelajahi Sumber

uhttpd: add "application/x-ns-proxy-autoconfig" mime type (#8236)

SVN-Revision: 28149
Jo-Philipp Wich 14 tahun lalu
induk
melakukan
7fce085a97
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 1 1
      package/uhttpd/Makefile
  2. 3 0
      package/uhttpd/src/uhttpd-mimetypes.h

+ 1 - 1
package/uhttpd/Makefile

@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 include $(TOPDIR)/rules.mk
 
 
 PKG_NAME:=uhttpd
 PKG_NAME:=uhttpd
-PKG_RELEASE:=24
+PKG_RELEASE:=25
 
 
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
 PKG_CONFIG_DEPENDS := \
 PKG_CONFIG_DEPENDS := \

+ 3 - 0
package/uhttpd/src/uhttpd-mimetypes.h

@@ -76,6 +76,9 @@ static struct mimetype uh_mime_types[] = {
 	{ "cfg",     "text/plain" },
 	{ "cfg",     "text/plain" },
 	{ "conf",    "text/plain" },
 	{ "conf",    "text/plain" },
 
 
+	{ "pac",		"application/x-ns-proxy-autoconfig" },
+	{ "wpad.dat",	"application/x-ns-proxy-autoconfig" },
+
 	{ NULL, NULL }
 	{ NULL, NULL }
 };
 };