Fix header issue with new Werkzeug