Remove lines causing heroku poorly formatted http response error