☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Is there a way to override the server value in the http header for a websocket?

Community Supportserver
amacat
amacat

I’m new to this all and don’t know all the information you need.

I have a web application that is using Panel. I’m trying to override the the server value in the websocket HTTP header to a custom string value. Currently it is returning TornadoServer/6.2. I have tried to add an auth.py to the main folder with the following:

login_url = "#"


def get_user(request_handler):
    request_handler._headers['server'] = 'custom string'
    return 'user'

This only change the server for one item but not all of them.

⌁   Link to post

End of archived discussion · Replies are disabled