]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: rename http_header_field.key to name
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Fri, 12 Aug 2016 21:35:23 +0000 (00:35 +0300)
committerGitLab <gitlab@git.dovecot.net>
Sat, 13 Aug 2016 10:51:40 +0000 (13:51 +0300)
src/lib-http/http-header.c
src/lib-http/http-header.h

index b363ed52965c9e8f21c049d7c69ea8f7569cefcc..2a34ec7f808f3e1c26d69e77409931c92487cb9d 100644 (file)
@@ -30,7 +30,7 @@ http_header_field_add(struct http_header *header,
        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);
index eb00899b5bdbf126d91eebd6023e191cb08a0c24..59941d946a4479b7a2f654f25a18b9516d82ea53 100644 (file)
@@ -10,7 +10,7 @@ struct http_header_limits {
 };
 
 struct http_header_field {
-       const char *key; /* FIXME: rename to 'name' for v2.3 */
+       const char *name;
        const char *value;
        size_t size;
 };
@@ -19,7 +19,7 @@ ARRAY_DEFINE_TYPE(http_header_field, struct http_header_field);
 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 *