Browse Source

Quick fix for files in memory (#382) (Step 4/?)

bel 8 years ago
parent
commit
475d6642d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -4193,7 +4193,7 @@ mg_stat(const struct mg_connection *conn,
         struct mg_file tmp_file;
 		open_file_in_memory(conn, path, &tmp_file, MG_FOPEN_MODE_NONE);
         filep->size = tmp_file.stat.size;
-        filep->time = time(NULL);
+        filep->last_modified = time(NULL);
         filep->location = 2;
 		/* TODO: for 1.10: restructure how files in memory are handled */