-
The server_name keyword argument is not used as the
In one terminal run
In another terminal run
The server_name should be used as the
In the docs for
|
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
What do you get for |
Beta Was this translation helpful? Give feedback.
-
The value I get for |
Beta Was this translation helpful? Give feedback.
-
Which means, I'm right. Have you tried setting it using CherryPy config? |
Beta Was this translation helpful? Give feedback.
-
How should I set it? When I stepped through it was being set here https://github.com/cherrypy/cherrypy/blob/master/cherrypy/_cprequest.py#L897 And not overwritten. In https://github.com/cherrypy/cherrypy/blob/master/cherrypy/_cpwsgi.py#L310 |
Beta Was this translation helpful? Give feedback.
-
When using CherryPy, you should use Why do you use underlying layer (which is Cheroot) after all? |
Beta Was this translation helpful? Give feedback.
-
I was using from cherrypy.wsgiserver import CherryPyWSGIServer, HTTPServer
HTTPServer.version = "Siecje" before the So I should replace that with from |
Beta Was this translation helpful? Give feedback.
-
Where do you specify |
Beta Was this translation helpful? Give feedback.
-
Well, this depends on whether you need CherryPy framework or you just need Cheroot WSGI/HTTP layer. If you can/want to drop CherryPy dependency, it should be or to use If you use CherryPy, I'm not sure what you are trying to achieve. Can you show me your code example or at least explain your intentions when using custom WSGI Server? If using normal CherryPy setup, it should be possible to set |
Beta Was this translation helpful? Give feedback.
-
Thanks setting |
Beta Was this translation helpful? Give feedback.
Well, this depends on whether you need CherryPy framework or you just need Cheroot WSGI/HTTP layer. If you can/want to drop CherryPy dependency, it should be or to use
cheroot.wsgi.Server
(orcheroot.server.HTTPServer
) and passserver_name
there directly.If you use CherryPy, I'm not sure what you are trying to achieve. Can you show me your code example or at least explain your intentions when using custom WSGI Server?
If using normal CherryPy setup, it should be possible to set
response.headers.server
config option like this.