Package: thttpd
Version: 2.23beta1-5
Severity: normal
Tags: patch
The mime_types.txt file in the source code has no entry for files
ending in .svg. Consequently, thttpd serves them as type text/plain,
confusing users.
$ curl -I http://www/test.svg
HTTP/1.1 200 OK
Server: thttpd/2.23beta1 26may2002
Content-Type: text/plain; charset=UTF-8
Date: Tue, 14 Nov 2006 20:40:09 GMT
Last-Modified: Tue, 28 Jun 2005 05:41:51 GMT
Accept-Ranges: bytes
Connection: close
Content-Length: 21253
This problem cannot be fixed without recompiling thttpd.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Versions of packages thttpd depends on:
ii libc6 2.3.6-15 GNU C Library: Shared libraries
ii logrotate 3.7.1-3 Log rotation utility
thttpd recommends no packages.
-- no debconf information
diff -ud /tmp/thttpd-2.23beta1/mime_types.txt /tmp/buffer-content-14837gjV
--- /tmp/thttpd-2.23beta1/mime_types.txt 2006-11-15 07:43:09.000000000
+1100
+++ /tmp/buffer-content-14837gjV 2006-11-15 07:43:15.000000000 +1100
@@ -31,6 +31,7 @@
xwd image/x-xwindowdump
ief image/ief
png image/png
+svg image/svg+xml
au audio/basic
snd audio/basic
Diff finished. Wed Nov 15 07:43:15 2006