소스 검색

【优化】目录访问支持

PJ-568 2 년 전
부모
커밋
4edd67798e
1개의 변경된 파일과 0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      server.py

+ 0 - 1
server.py

@@ -41,7 +41,6 @@ class ChatServer(http.server.BaseHTTPRequestHandler):
     def do_GET(self):
         try:
             if self.path == '/':
-                self.send_response(200)
                 self.send_file('index.html')
             elif self.path == '/index.html':
                 self.send_file('index.html')