Update of /cvsroot/sandweb/sandweb/lib/SandWeb
In directory usw-pr-cvs1:/tmp/cvs-serv20449/lib/SandWeb
Modified Files:
File.pm
Log Message:
somehow I made the downloader default to "text/html" as the content
type, which is bad.
content type detection seems to be broken, but worst case it should
default to unknown.
Index: File.pm
===================================================================
RCS file: /cvsroot/sandweb/sandweb/lib/SandWeb/File.pm,v
retrieving revision 1.50
retrieving revision 1.51
diff -U2 -r1.50 -r1.51
--- File.pm 7 Mar 2002 08:12:09 -0000 1.50
+++ File.pm 7 Mar 2002 08:16:18 -0000 1.51
@@ -167,10 +167,9 @@
$log->debug("MIME type looks like : $mime_type");
-
unless ($mime_type) {
$mime_type = "binary/unknown";
}
- print "content-type: text/html\n\n";
+ print "content-type: $mime_type\n\n";
if (open FILE,"< $location/$filename") {
|