From 0a23e721b2ed2d4390173a43495c2eea01968f7f Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 27 Jan 2004 16:18:10 +0000 Subject: [PATCH] Use HTTP 1.0 in receive_message SVN revision: 721 --- src/elogd.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/elogd.c b/src/elogd.c index 82e968b5..7ab8d572 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.215 2004/01/27 16:18:10 midas + Use HTTP 1.0 in receive_message + Revision 1.214 2004/01/27 13:45:05 midas Fixed bug in attachment retrieval @@ -1569,8 +1572,8 @@ int retrieve_url(char *url, char **buffer) return -1; } - /* compose GET request */ - sprintf(str, "GET %s%s HTTP/1.1\r\nConnection: Close\r\n", subdir, param); + /* compose GET request, avoid chunked data in HTTP/1.1 protocol */ + sprintf(str, "GET %s%s HTTP/1.0\r\nConnection: Close\r\n", subdir, param); /* add local username/password */ if (isparam("unm")) @@ -1627,6 +1630,8 @@ int retrieve_url(char *url, char **buffer) closesocket(sock); + + return n; } @@ -13630,13 +13635,13 @@ void show_logbook_node(LBLIST plb, LBLIST pparent, int level, int btop) else sprintf(ref, "?gexp=%s", pparent->name); - rsprintf("- ", ref); + rsprintf("- %s ", ref, plb->name); } else { sprintf(ref, "?gexp=%s", plb->name); - rsprintf("+ ", ref); + rsprintf("+ %s ", ref, plb->name); } - rsprintf("%s\n", plb->name); + rsprintf("\n"); } if (plb->is_top || expand)