Changeset 166 in Main for trunk/Server/server.c
- Timestamp:
- Sep 27, 2024, 5:00:49 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/server.c
r163 r166 274 274 if(code == 200) { 275 275 return "200 OK"; 276 } else if(code == 301) { 277 return "308 Moved Permanently"; 276 278 } else if(code == 308) { 277 279 return "308 Permanent Redirect"; … … 603 605 cm_log("Server", "Accessing directory without the slash at the end"); 604 606 char* headers[3] = {"Location", cm_strcat(req.path, "/"), NULL}; 605 _tw_process_page(s, sock, tw_http_status(30 8), NULL, NULL, NULL, 0, headers, 0, 0);607 _tw_process_page(s, sock, tw_http_status(301), NULL, NULL, NULL, 0, headers, 0, 0); 606 608 free(headers[1]); 607 609 } else {
Note:
See TracChangeset
for help on using the changeset viewer.