Changeset 173 in Main for trunk/Server/server.c
- Timestamp:
- Sep 27, 2024, 6:18:46 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r167 r173 797 797 if(ext != NULL) free(ext); 798 798 FILE* f = fopen(path, "rb"); 799 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime, cmtime); 800 fclose(f); 799 if(f == NULL) { 800 tw_http_error(s, sock, 403, name, port, vhost_entry); 801 } else { 802 tw_process_page(s, sock, tw_http_status(200), mime, f, NULL, st.st_size, st.st_mtime, cmtime); 803 fclose(f); 804 } 801 805 } 802 806 } else {
Note:
See TracChangeset
for help on using the changeset viewer.