Author: remi
Date: 2009-05-05 15:56:11 +0200 (Tue, 05 May 2009)
New Revision: 4636

Modified:
   software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py
Log:
* added support of png files when a directory is served

Modified: software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py      
2009-05-05 13:54:49 UTC (rev 4635)
+++ software_suite_v3/smart-core/smart-server/trunk/TDSResourcesManager.py      
2009-05-05 13:56:11 UTC (rev 4636)
@@ -372,6 +372,8 @@
                 headers = [['Content-type', 'js; charset="utf-8"'],]
             elif file.lower().rfind(".gif") != -1:
                 headers = [['Content-type', 'image/gif; charset="utf-8"'],]
+            elif file.lower().rfind(".png") != -1:
+                headers = [['Content-type', 'image/png; charset="utf-8"'],]
             elif file.lower().rfind(".css") != -1:
                 headers = [['Content-type', 'text/css; charset="utf-8"'],]
             elif file.lower().rfind(".ico") != -1:


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to