diff seobeo/s_router.c @ 78:e7bf9e002850

amend
author June Park <parkjune1995@gmail.com>
date Wed, 31 Dec 2025 15:07:43 -0800
parents 4532ce6d9eb8
children 5710108c949e
line wrap: on
line diff
--- a/seobeo/s_router.c	Wed Dec 31 14:17:40 2025 -0800
+++ b/seobeo/s_router.c	Wed Dec 31 15:07:43 2025 -0800
@@ -18,7 +18,7 @@
 
 void Seobeo_Router_Init()
 {
-  g_routes = NULL;
+  Dowa_Array_Reserve(g_routes, 20);
 }
 
 void Seobeo_Router_Register(const char *method, const char *path_pattern, Seobeo_Route_Handler handler)
@@ -144,7 +144,7 @@
   }
 
   // Default text plain
-  const char *content_type = "text/plain";
+  const char *content_type = "text/html";
   void *p_content_type_kv = Dowa_HashMap_Get_Ptr(p_response_map, "content-type");
   if (p_content_type_kv)
   {