소스 검색

Update WebServer.php

walkor 9 년 전
부모
커밋
2424fb8dc1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      WebServer.php

+ 1 - 1
WebServer.php

@@ -162,7 +162,7 @@ class WebServer extends Worker
             return;
         }
 
-        $workerman_path = $workerman_url_info['path'];
+        $workerman_path = isset($workerman_url_info['path']) ? $workerman_url_info['path'] : '/';
 
         $workerman_path_info      = pathinfo($workerman_path);
         $workerman_file_extension = isset($workerman_path_info['extension']) ? $workerman_path_info['extension'] : '';