Mercurial
diff hg-web/main.c @ 190:a2725419f988 hg-web
Updated so that bun builds will with already existing js files.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Sat, 24 Jan 2026 21:06:42 -0800 |
| parents | 32ce881452fa |
| children | 9f4429c49733 |
line wrap: on
line diff
--- a/hg-web/main.c Fri Jan 23 22:50:28 2026 -0800 +++ b/hg-web/main.c Sat Jan 24 21:06:42 2026 -0800 @@ -154,7 +154,7 @@ Seobeo_Log(SEOBEO_DEBUG, "ApiGetFile: status=%i body_len=%zu\n", hg_response->status_code, hg_response->body_length); char status[4]; - snprintf(status, 3, "%i", hg_response->status_code); + snprintf(status, 4, "%i", hg_response->status_code); if (!hg_response->body) { @@ -178,7 +178,7 @@ char *temp2 = Dowa_Arena_Allocate(arena, 256); snprintf(temp2, 256, "%zu", hg_response->body_length); - Dowa_HashMap_Push_Arena(resp, "status", status, arena); + Dowa_HashMap_Push_Arena(resp, "status", "200", arena); Dowa_HashMap_Push_Arena(resp, "content-type", "text/plain", arena); Dowa_HashMap_Push_Arena(resp, "body", temp1, arena); Dowa_HashMap_Push_Arena(resp, "content-length", temp2, arena);