Permalink
Browse files

Merge pull request #14 from mkorenkov/master

Support for Access-Control-Max-Age: 1000 like headers
  • Loading branch information...
2 parents 37ed938 + f869478 commit 77653d73de57388b712eaf50de8c32ec70c182fa @benoitc committed Jun 6, 2015
Showing with 4 additions and 1 deletion.
  1. +4 −1 webmachine/wrappers.py
View
@@ -166,7 +166,10 @@ def __getitem__(self, header):
def _convert_to_ascii(self, header, value):
def convert(s):
- return s.decode('ascii')
+ try:
+ return s.decode('ascii')
+ except AttributeError:
+ return s
return convert(header), convert(value)
#

0 comments on commit 77653d7

Please sign in to comment.