Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response header "Server' cannot modified #974

Open
iidst opened this issue Feb 1, 2024 · 0 comments
Open

response header "Server' cannot modified #974

iidst opened this issue Feb 1, 2024 · 0 comments

Comments

@iidst
Copy link

iidst commented Feb 1, 2024

I want to change response header "Server',use th code

@app.after_request
def after_request(response):
response.headers['Server'] = 'WebServer'
response.headers['Server2'] = 'WebServer'
return response

After testing, it was found that response headers "Server' not modified, response header "Server2' is modified.

Server: Werkzeug/3.0.1 Python/3.11.5
Server2: WebServer

Would you like to know how to modify the response header "Server", thanks .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant