diff src/c/static.c @ 2137:8ecbd1100227

Set dummy header lookup function in static.c
author Adam Chlipala <adam@chlipala.net>
date Sun, 03 May 2015 09:40:13 -0400
parents c93fbd139732
children c39c48696393
line wrap: on
line diff
--- a/src/c/static.c	Fri Apr 24 10:01:56 2015 -0400
+++ b/src/c/static.c	Sun May 03 09:40:13 2015 -0400
@@ -16,6 +16,10 @@
 
 static uw_loggers loggers = {NULL, log_, log_};
 
+static char *get_header(void *data, const char *h) {
+  return NULL;
+}
+
 int main(int argc, char *argv[]) {
   uw_context ctx;
   failure_kind fk;
@@ -27,6 +31,7 @@
  
   ctx = uw_init(0, &loggers);
   uw_set_app(ctx, &uw_application);
+  uw_set_headers(ctx, get_header, NULL);
   uw_initialize(ctx);
 
   while (1) {