}
g_byte_array_append (dest, c, len);
+ if (content_tag) {
+ if (content_tag->content == NULL) {
+ content_tag->content = c;
+ }
+
+ content_tag->content_length += p - c + 1;
+ }
}
c = p;
g_byte_array_append (dest, c, len);
if (content_tag) {
- content_tag->content_length = len;
- content_tag->content = c;
- content_tag = NULL;
+ if (content_tag->content == NULL) {
+ content_tag->content = c;
+ }
+
+ content_tag->content_length += p - c;
}
}
+ content_tag = NULL;
+
state = tag_begin;
continue;
}
continue;
}
+ if (content_tag) {
+ content_tag->content_length ++;
+ }
+
p ++;
break;