跟#18 一样的问题 怎么处理??
REQUEST_DATE: 2023-04-17 22:45:53
PAN_VERSION: 7.9.9
OS_VERSION: CentOS 7.6.1810 x86_64(Py3.7.9)
REMOTE_ADDR: 183.47.124.225
REQUEST_URI: POST /tamper_core/service_admin.json?
REQUEST_FORM: {'action': 'start'}
USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Traceback (most recent call last):
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1823, in full_dispatch_request
return self.finalize_request(rv)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 1844, in finalize_request
response = self.process_response(response)
File "/www/server/panel/pyenv/lib/python3.7/site-packages/flask/app.py", line 2337, in process_response
response = self.ensure_sync(func)(response)
File "class/flask_compress.py", line 82, in after_request
response.headers['Server'] = 'nginx'
AttributeError: 'tuple_iterator' object has no attribute 'headers' |