summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2007-10-05 15:54:51 +0000
committerxue <>2007-10-05 15:54:51 +0000
commit07d10b23bf6282143df62a248e6ab4d85559d96c (patch)
tree570a6b7c04d9bfdda52f16ac6600f00808a9ab10
parent67f16d2be099b22438e9298fcc02421112b069af (diff)
added a few more mime types.
-rw-r--r--framework/Web/THttpResponse.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php
index d6469bea..0274ffbb 100644
--- a/framework/Web/THttpResponse.php
+++ b/framework/Web/THttpResponse.php
@@ -269,7 +269,9 @@ class THttpResponse extends TModule implements ITextWriter
'jpeg'=>'image/jpeg',
'htm'=>'text/html',
'html'=>'text/html',
- 'js'=>'javascript/js'
+ 'js'=>'javascript/js',
+ 'pdf'=>'application/pdf',
+ 'xls'=>'application/vnd.ms-excel',
);
if($mimeType===null)