소스 검색

Set "is found" for gz files

Fix for #189
bel 10 년 전
부모
커밋
f8d95ec004
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/civetweb.c

+ 2 - 1
src/civetweb.c

@@ -3827,7 +3827,7 @@ interpret_uri(struct mg_connection *conn,   /* in: request */
               int *is_put_or_delete_request /* out: put/delete a file? */
               )
 {
-	/* TODO: Restructure this function */
+	/* TODO (high): Restructure this function */
 	if (conn && conn->ctx) {
 
 #if !defined(NO_FILES)
@@ -3962,6 +3962,7 @@ interpret_uri(struct mg_connection *conn,   /* in: request */
 				if (mg_stat(conn, gz_path, filep)) {
 					if (filep) {
 						filep->gzipped = 1;
+						*is_found = 1;
 					}
 					/* Currently gz files can not be scripts. */
 					return;