comparison src/c/urweb.c @ 1110:7fc4e0087e50

Proper 404 generation
author Adam Chlipala <adamc@hcoop.net>
date Sat, 02 Jan 2010 13:31:59 -0500
parents 631a3597c065
children 40d48a2b78a7
comparison
equal deleted inserted replaced
1109:631a3597c065 1110:7fc4e0087e50
1170 int len = strlen(s); 1170 int len = strlen(s);
1171 1171
1172 uw_check_headers(ctx, len + 1); 1172 uw_check_headers(ctx, len + 1);
1173 strcpy(ctx->outHeaders.front, s); 1173 strcpy(ctx->outHeaders.front, s);
1174 ctx->outHeaders.front += len; 1174 ctx->outHeaders.front += len;
1175 }
1176
1177 void uw_clear_headers(uw_context ctx) {
1178 buf_reset(&ctx->outHeaders);
1175 } 1179 }
1176 1180
1177 static void uw_check_script(uw_context ctx, size_t extra) { 1181 static void uw_check_script(uw_context ctx, size_t extra) {
1178 buf_check(&ctx->script, extra); 1182 buf_check(&ctx->script, extra);
1179 } 1183 }