struct vsb *sb, *sbh;
unsigned l;
+ /* No Vary: header, no worries */
+ if (!http_GetHdr(sp->obj->http, H_Vary, &v))
+ return;
+
/* For vary matching string */
sb = vsb_new(NULL, NULL, 0, VSB_AUTOEXTEND);
AN(sb);
sbh = vsb_new(NULL, NULL, 0, VSB_AUTOEXTEND);
AN(sbh);
- /* No Vary: header, no worries */
- if (!http_GetHdr(sp->obj->http, H_Vary, &v))
- return;
-
for (p = v; *p; p++) {
/* Find next header-name */
sp->obj->vary = malloc(l);
AN(sp->obj->vary);
memcpy(sp->obj->vary, vsb_data(sb), l);
+
+ vsb_delete(sb);
+ vsb_delete(sbh);
}
int