diff options
Diffstat (limited to 'wsgitools/applications.py')
-rw-r--r-- | wsgitools/applications.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsgitools/applications.py b/wsgitools/applications.py index 5ef2e8a..dcbd78a 100644 --- a/wsgitools/applications.py +++ b/wsgitools/applications.py @@ -10,7 +10,7 @@ class StaticContent: """ assert isinstance(status, str) assert isinstance(headers, list) - assert hasattr(content, "__iter__") + assert isinstance(content, basestring) or hasattr(content, "__iter__") self.status = status self.headers = headers length = -1 |