[javascriptlint-commit] SF.net SVN: javascriptlint:[277] trunk
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2009-10-08 14:06:53
|
Revision: 277
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=277&view=rev
Author: matthiasmiller
Date: 2009-10-08 14:06:47 +0000 (Thu, 08 Oct 2009)
Log Message:
-----------
www: add favicon
Modified Paths:
--------------
trunk/www.py
Added Paths:
-----------
trunk/www/favicon.ico
Added: trunk/www/favicon.ico
===================================================================
(Binary files differ)
Property changes on: trunk/www/favicon.ico
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: trunk/www.py
===================================================================
--- trunk/www.py 2009-10-08 13:54:28 UTC (rev 276)
+++ trunk/www.py 2009-10-08 14:06:47 UTC (rev 277)
@@ -260,13 +260,15 @@
return settings, md.convert(source)
def _transform_file(host, path):
- source = open(path).read()
+ source = open(path, 'rb').read()
if path.endswith('.css'):
return 'text/css', source
elif path.endswith('.gif'):
return 'image/gif', source
elif path.endswith('.png'):
return 'image/png', source
+ elif path.endswith('.ico'):
+ return 'image/x-icon', source
elif path.endswith('.inc'):
return 'text/plain', source
elif path.endswith('.rss'):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|