void *value;
hfield = array_append_space(&header->fields);
- hfield->key = p_strdup(pool, name);
+ hfield->name = p_strdup(pool, name);
hfield->size = size;
value = p_malloc(pool, size+1);
};
struct http_header_field {
- const char *key; /* FIXME: rename to 'name' for v2.3 */
+ const char *name;
const char *value;
size_t size;
};
static inline bool http_header_field_is(const struct http_header_field *hfield,
const char *name)
{
- return (strcasecmp(hfield->key, name) == 0);
+ return (strcasecmp(hfield->name, name) == 0);
}
struct http_header *