| 2621 | */ |
| 2622 | |
| 2623 | void |
| 2624 | httpSetField(http_t *http, /* I - HTTP connection */ |
| 2625 | http_field_t field, /* I - Field index */ |
| 2626 | const char *value) /* I - Value */ |
| 2627 | { |
| 2628 | DEBUG_printf(("httpSetField(http=%p, field=%d(%s), value=\"%s\")", (void *)http, field, http_fields[field], value)); |
| 2629 | |
| 2630 | if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX || !value) |
| 2631 | return; |
| 2632 | |
| 2633 | http_add_field(http, field, value, 0); |
| 2634 | } |
| 2635 | |
| 2636 | |
| 2637 | /* |