httpheaderaddheader.c (661B)
1 /************************************************************************* 2 * This file is part of Crosroads 1.23, a load balancer and fail over 3 * utility for TCP. Copyright (c) Karel Kubat, distributed under GPL. 4 * Visit http://crossroads.e-tunity.com for information. 5 *************************************************************************/ 6 #include "crossroads.h" 7 8 void http_header_addheader (HttpHeader *m, char const *h) { 9 char *exp; 10 11 exp = str_expand_format (h); 12 msg ("Service %s: adding header '%s'", activeservice->name, exp); 13 m->header = xrealloc (m->header, (m->nheader + 1) * sizeof(char*)); 14 m->header[m->nheader++] = exp; 15 }