Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
CSS files returned with corrupted headers #48
Sometimes, a css file is returned and the Content-Type in the response Headers is wrong.
This problem happens very intermittently and pretty randomly.
In flask's helpers.py, in the send_file function, I tried adding this as a debug message:
But at this point, the file's mimetype is all good.
I was able to find someone with a similar problem: https://groups.google.com/forum/#!topic/web2py/5F3UUMkDPRI
We both use Flask and mod_wsgi, that's pretty much all we have in common. But otherwise, it's exactly the same issue.
A CSS file having this issue won't be rendered by firefox. But if you open it, the content is there. The only problem is the corrupted content-type.
Issue is solved by using mod_wsgi 3.4 ( see https://code.google.com/p/modwsgi/issues/detail?id=255 )
I will updated the readme and the website to reflect this new requirement.