Permalink
Browse files

only inline images for css files

  • Loading branch information...
1 parent a97b825 commit cb65bfb0422bde1e57058d5c2b415cbc92fb4f45 @jairajs89 committed Nov 7, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 package.json
  2. +1 −1 zerver.js
View
@@ -2,7 +2,7 @@
"author": "Jairaj Sethi <j@jairaj.org> (http://jairaj.org/)",
"name": "zerver",
"description": "client-integrated webapp server",
- "version": "0.5.4",
+ "version": "0.5.5",
"repository": {
"type": "git",
"url": "git://github.com/jairajs89/zerver.git"
View
@@ -198,7 +198,7 @@ function handleMiddlewareRequest (request, response, next) {
}
function inlineImages (type, data, pathname, callback) {
- if (!INLINING_ENABLED || DEBUG) {
+ if (!INLINING_ENABLED || DEBUG || (type !== 'text/css') || (typeof data !== 'string')) {
callback(data);
return;
}

0 comments on commit cb65bfb

Please sign in to comment.