ソースを参照

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;