Adds a fix for heroku and built-in http server.
Such an ugly fix.