Changeset 61 in Main for trunk/Server/server.c
- Timestamp:
- Sep 18, 2024, 9:45:02 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r60 r61 483 483 } else if(S_ISDIR(st.st_mode)) { 484 484 if(req.path[strlen(req.path) - 1] != '/') { 485 cm_log("Server", "Accessing directory without the slash at the end"); 485 486 char* headers[3] = {"Location", cm_strcat(req.path, "/"), NULL}; 486 487 _tw_process_page(s, sock, tw_http_status(308), NULL, NULL, NULL, 0, headers, 0, 0);
Note:
See TracChangeset
for help on using the changeset viewer.