Permalink
Browse files

accomodate to binary static files

  • Loading branch information...
1 parent e6dc8c9 commit 34f7b317e3093ac207f460f5cc6eff4dfeb5341a @akariv committed Jul 15, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 processors/emitters/static_file_formatter.py
@@ -14,3 +14,4 @@ def format(self):
real_path = self.token.path[:-len(self.STATIC_SUFFIX)]
statics = internal_find( real_path, fields=["static-files"] ).get("static-files",{})
self.token.content_type, self.token.response = statics.get(self.token.slug,("text/html",""))
+ self.token.response = self.token.response.decode('base64')

0 comments on commit 34f7b31

Please sign in to comment.