Mercurial
comparison seobeo/s_web.c @ 173:827c6ac504cd hg-web
Merged in default here.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 19 Jan 2026 18:59:10 -0800 |
| parents | 6de849867459 bdcc610eeed8 |
| children | 71ad34a8bc9a |
comparison
equal
deleted
inserted
replaced
| 151:c033667da5f9 | 173:827c6ac504cd |
|---|---|
| 217 (uint32)strlen(p_response_header)); | 217 (uint32)strlen(p_response_header)); |
| 218 Seobeo_Handle_Flush(p_cli_handle); | 218 Seobeo_Handle_Flush(p_cli_handle); |
| 219 goto clean_up; | 219 goto clean_up; |
| 220 } | 220 } |
| 221 | 221 |
| 222 Seobeo_Log(SEOBEO_DEBUG, "Serving Static Files\n"); | |
| 222 // Serve static file | 223 // Serve static file |
| 223 const char *mime = "application/octet-stream"; | 224 const char *mime = "application/octet-stream"; |
| 224 if (strstr(file_path, ".html")) mime = "text/html; charset=utf-8"; | 225 if (strstr(file_path, ".html")) mime = "text/html; charset=utf-8"; |
| 225 else if (strstr(file_path, ".css")) mime = "text/css"; | 226 else if (strstr(file_path, ".css")) mime = "text/css"; |
| 226 else if (strstr(file_path, ".js")) mime = "application/javascript"; | 227 else if (strstr(file_path, ".js")) mime = "application/javascript"; |