fix http_header_append and http_header_overwrite

personal/stbuehler/wip
Thomas Porzelt 14 years ago
parent 5dde1fafb5
commit 2ac5c5c0a5
  1. 4
      src/http_headers.c

@ -88,7 +88,7 @@ void http_header_append(http_headers *headers, const gchar *key, size_t keylen,
if (NULL == l) {
http_header_insert(headers, key, keylen, val, valuelen);
} else {
h = (http_header*) l;
h = (http_header*) l->data;
g_string_append_len(h->data, CONST_STR_LEN(", "));
g_string_append_len(h->data, val, valuelen);
}
@ -103,7 +103,7 @@ void http_header_overwrite(http_headers *headers, const gchar *key, size_t keyle
if (NULL == l) {
http_header_insert(headers, key, keylen, val, valuelen);
} else {
h = (http_header*) l;
h = (http_header*) l->data;
g_string_truncate(h->data, 0);
g_string_append_len(h->data, key, keylen);
g_string_append_len(h->data, CONST_STR_LEN(": "));

Loading…
Cancel
Save