aboutsummaryrefslogtreecommitdiffstats
path: root/tests/blogc/check_loader.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-25 02:57:21 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-09-25 02:57:21 +0200
commit6ac53d4c783340ae9139c7f4dcfe9bfddace5892 (patch)
tree2637740546dcf002fbfe39eb94d6f722a2c5c7d6 /tests/blogc/check_loader.c
parent0c916e2c8b56c320fdc81f68d445194559479041 (diff)
downloadblogc-6ac53d4c783340ae9139c7f4dcfe9bfddace5892.tar.gz
blogc-6ac53d4c783340ae9139c7f4dcfe9bfddace5892.tar.bz2
blogc-6ac53d4c783340ae9139c7f4dcfe9bfddace5892.zip
runserver: reimplemented http server without libevent
yeah, this patch implements a "complete" http server for static files. It is not the best code possible, and would be easily DDoS'able if used in production, as it spawns a thread for each request, without limiting. I'm sickish and this is the best code I can deliver now. At least it works! ;)
Diffstat (limited to 'tests/blogc/check_loader.c')
-rw-r--r--tests/blogc/check_loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/blogc/check_loader.c b/tests/blogc/check_loader.c
index 52521e2..36a3471 100644
--- a/tests/blogc/check_loader.c
+++ b/tests/blogc/check_loader.c
@@ -50,8 +50,9 @@ test_get_filename(void **state)
char*
-__wrap_bc_file_get_contents(const char *path, size_t *len, bc_error_t **err)
+__wrap_bc_file_get_contents(const char *path, bool utf8, size_t *len, bc_error_t **err)
{
+ assert_true(utf8);
assert_null(*err);
const char *_path = mock_type(const char*);
if (_path != NULL)