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:
13
nanohttp.c
13
nanohttp.c
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user