Mercurial > urweb
comparison src/c/driver.c @ 500:581554f8e642
Fix missing initial <html> after restarts
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 20 Nov 2008 10:44:28 -0500 |
parents | 667c0e54632a |
children | 8875ff2e85dc |
comparison
equal
deleted
inserted
replaced
499:12d163bb856f | 500:581554f8e642 |
---|---|
187 } | 187 } |
188 | 188 |
189 printf("Serving URI %s....\n", path); | 189 printf("Serving URI %s....\n", path); |
190 | 190 |
191 uw_set_headers(ctx, headers); | 191 uw_set_headers(ctx, headers); |
192 uw_write(ctx, "<html>"); | |
193 | 192 |
194 while (1) { | 193 while (1) { |
194 uw_write(ctx, "<html>"); | |
195 | |
195 if (uw_db_begin(ctx)) { | 196 if (uw_db_begin(ctx)) { |
196 printf("Error running SQL BEGIN\n"); | 197 printf("Error running SQL BEGIN\n"); |
197 if (retries_left) | 198 if (retries_left) |
198 --retries_left; | 199 --retries_left; |
199 else { | 200 else { |