我想删除/更改服务器名称
class MyServer(SimpleHTTPRequestHandler):
def _setHeader(self):
self.send_response(200)
self.send_header('Content-Type','text/html; charset=utf-8')
self.send_header('Access-Control-Allow-Origin',"*")
self.send_header('Access-Control-Allow-Credentials','true')
self.send_header('Server','Custom name')
self.end_headers()
self.send_header('Server','Custom name')
我试图更改服务器名称,但它不工作
请帮我
提前致谢