{"action":"closed","issue":{"url":"https://api.github.com/repos/jazzband/django-pipeline/issues/496","labels_url":"https://api.github.com/repos/jazzband/django-pipeline/issues/496/labels{/name}","comments_url":"https://api.github.com/repos/jazzband/django-pipeline/issues/496/comments","events_url":"https://api.github.com/repos/jazzband/django-pipeline/issues/496/events","html_url":"https://github.com/jazzband/django-pipeline/issues/496","id":106218777,"number":496,"title":"wsgiref insists headers be strings, fails","user":{"login":"chadmiller","id":287758,"avatar_url":"https://avatars.githubusercontent.com/u/287758?v=3","gravatar_id":"","url":"https://api.github.com/users/chadmiller","html_url":"https://github.com/chadmiller","followers_url":"https://api.github.com/users/chadmiller/followers","following_url":"https://api.github.com/users/chadmiller/following{/other_user}","gists_url":"https://api.github.com/users/chadmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/chadmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadmiller/subscriptions","organizations_url":"https://api.github.com/users/chadmiller/orgs","repos_url":"https://api.github.com/users/chadmiller/repos","events_url":"https://api.github.com/users/chadmiller/events{/privacy}","received_events_url":"https://api.github.com/users/chadmiller/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-13T14:01:05Z","updated_at":"2015-12-30T20:49:12Z","closed_at":"2015-12-30T20:49:12Z","body":"I'm using dj_static as a wrapper to serve static files, Python3.4\r\n\r\n```\r\n[13/Sep/2015 13:49:46] \"GET /s/css/site.a4b3a37942c0.css HTTP/1.1\" 200 8629\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.4/wsgiref/handlers.py\", line 137, in run\r\n    self.result = application(self.environ, self.start_response)\r\n  File \"env/lib/python3.4/site-packages/dj_static.py\", line 88, in __call__\r\n    return self.cling(environ, start_response)\r\n  File \"env/lib/python3.4/site-packages/static/apps.py\", line 125, in __call__\r\n    start_response(\"200 OK\", headers)\r\n  File \"/usr/lib/python3.4/wsgiref/handlers.py\", line 226, in start_response\r\n    self.headers = self.headers_class(headers)\r\n  File \"/usr/lib/python3.4/wsgiref/headers.py\", line 39, in __init__\r\n    self._convert_string_type(v)\r\n  File \"/usr/lib/python3.4/wsgiref/headers.py\", line 46, in _convert_string_type\r\n    \" of type str (got {0})\".format(repr(value)))\r\nAssertionError: Header names/values must be of type str (got b'text/javascript')\r\n```\r\n\r\nIn the config, 'PIPELINE_MIMETYPES' contains tuples with byte arrays. If those are instead unicode strings, wsgiref is happy. Removing \"b\" before ' below seems to work. I don't know if it's *correct*.\r\n\r\n```python\r\n{\r\n'PIPELINE_MIMETYPES': (\r\n    (b'text/coffeescript', '.coffee'),\r\n    (b'text/less', '.less'),\r\n    (b'text/javascript', '.js'),\r\n    (b'text/x-sass', '.sass'),\r\n    (b'text/x-scss', '.scss')\r\n),\r\n}\r\n```"}}