comparison src/c/driver.c @ 740:b302b6e35f93

Add MIME type to file
author Adam Chlipala <adamc@hcoop.net>
date Sat, 25 Apr 2009 14:47:16 -0400
parents 4bb7e1c0550a
children f7e2026dd5ae
comparison
equal deleted inserted replaced
739:4bb7e1c0550a 740:b302b6e35f93
391 part_len = part - after_sub_headers - 2; 391 part_len = part - after_sub_headers - 2;
392 part[0] = 0; 392 part[0] = 0;
393 part += boundary_len; 393 part += boundary_len;
394 394
395 if (filename) { 395 if (filename) {
396 uw_Basis_file f = {filename, {part_len, after_sub_headers}}; 396 uw_Basis_file f = {filename, type, {part_len, after_sub_headers}};
397 397
398 uw_set_file_input(ctx, name, f); 398 uw_set_file_input(ctx, name, f);
399 } else 399 } else
400 uw_set_input(ctx, name, after_sub_headers); 400 uw_set_input(ctx, name, after_sub_headers);
401 } 401 }