소스 검색

Revert "Remove unused variables mlen, uri_len"

bel2125 3 년 전
부모
커밋
8af597b4b4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/civetweb.c

+ 2 - 1
src/civetweb.c

@@ -14629,7 +14629,7 @@ handle_request(struct mg_connection *conn)
 {
 	struct mg_request_info *ri = &conn->request_info;
 	char path[UTF8_PATH_MAX];
-	int ssl_index;
+	int uri_len, ssl_index;
 	int is_found = 0, is_script_resource = 0, is_websocket_request = 0,
 	    is_put_or_delete_request = 0, is_callback_resource = 0,
 	    is_template_text_file = 0, is_webdav_request = 0;
@@ -14682,6 +14682,7 @@ handle_request(struct mg_connection *conn)
 		}
 		return;
 	}
+	uri_len = (int)strlen(ri->local_uri);
 
 	/* 1.3. decode url (if config says so) */
 	if (should_decode_url(conn)) {