+void begin_burst(void) {
+ if (WC->burst != NULL) {
+ free(WC->burst);
+ WC->burst = NULL;
+ }
+ WC->burst_len = 0;
+ WC->burst = malloc(SIZ);
+}
+
+void end_burst(void) {
+ size_t the_len;
+ char *the_data;
+
+ the_len = WC->burst_len;
+ the_data = WC->burst;
+
+ WC->burst_len = 0;
+ WC->burst = NULL;
+
+ wprintf("Content-length: %d\n\n", the_len);
+ client_write(the_data, the_len);
+ free(the_data);
+}
+
+
+