Changeset 166 in Main
- Timestamp:
- Sep 27, 2024, 5:00:49 AM (7 weeks ago)
- Files:
-
- 1 deleted
- 3 edited
- 16 copied
Legend:
- Unmodified
- Added
- Removed
-
tags/1.08B/README
r161 r166 1 1 2 Tewi HTTPd version 1.08 2 Tewi HTTPd version 1.08B 3 3 4 4 Original by Nishi <nishi@nishi.boats> -
tags/1.08B/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 { -
tags/1.08B/Server/tw_version.h
r163 r166 8 8 #endif 9 9 10 #define TW_VERSION "1.08 A\0"10 #define TW_VERSION "1.08B\0" 11 11 12 12 const char* tw_get_version(void); -
trunk/README
r161 r166 1 1 2 Tewi HTTPd version 1.08 2 Tewi HTTPd version 1.08B 3 3 4 4 Original by Nishi <nishi@nishi.boats> -
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 { -
trunk/Server/tw_version.h
r163 r166 8 8 #endif 9 9 10 #define TW_VERSION "1.08 A\0"10 #define TW_VERSION "1.08B\0" 11 11 12 12 const char* tw_get_version(void);
Note:
See TracChangeset
for help on using the changeset viewer.