changeset 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 75c8f8e3f5d0
children 3ca67d73fa5d a07b91fa71db
files src/c/static.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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) {