参见flask.app模块中的make_response函数:
```
        if isinstance(rv, tuple):
            rv, status, headers = rv + (None,) * (3 - len(rv))
```