try to update your Flask1.0 to Flask1.0.1I guess the bug has been fixed in Flask1.0.1 :)
https://github.com/pallets/flask/issues/2735