1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

Patches added during last week on W3C CVS base:

- tree.c: coalesce adjacent text nodes
- valid.c: handling of blank nodes in DTd validation (raised
  by problems with a posteriori validation).
- nanohttp.c: changing behaviour on HTTP write stuff.
- HTMLtree.c: forced body and html to be explicitely closed.
- xpath.h: exported more XPath functions.
Daniel
This commit is contained in:
Daniel Veillard
2000-10-22 12:04:13 +00:00
parent 0c0692291e
commit 683cb02636
7 changed files with 167 additions and 6 deletions

View File

@ -403,8 +403,17 @@ xmlNanoHTTPFreeCtxt(xmlNanoHTTPCtxtPtr ctxt) {
static void
xmlNanoHTTPSend(xmlNanoHTTPCtxtPtr ctxt) {
if (ctxt->state & XML_NANO_HTTP_WRITE)
ctxt->last = send(ctxt->fd, ctxt->outptr, strlen(ctxt->outptr), 0);
if (ctxt->state & XML_NANO_HTTP_WRITE) {
int total_sent = 0;
while (total_sent <strlen(ctxt->outptr)) {
int nsent = send(ctxt->fd, ctxt->outptr+total_sent,
strlen(ctxt->outptr)-total_sent, 0);
if (nsent>0)
total_sent += nsent;
}
ctxt->last = total_sent;
}
}
/**