mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Use HTTP 1.0 in receive_message
SVN revision: 721
This commit is contained in:
parent
46bf059b11
commit
0a23e721b2
15
src/elogd.c
15
src/elogd.c
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 1.214 2004/01/27 13:45:05 midas
|
||||||
Fixed bug in attachment retrieval
|
Fixed bug in attachment retrieval
|
||||||
|
|
||||||
@ -1569,8 +1572,8 @@ int retrieve_url(char *url, char **buffer)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* compose GET request */
|
/* compose GET request, avoid chunked data in HTTP/1.1 protocol */
|
||||||
sprintf(str, "GET %s%s HTTP/1.1\r\nConnection: Close\r\n", subdir, param);
|
sprintf(str, "GET %s%s HTTP/1.0\r\nConnection: Close\r\n", subdir, param);
|
||||||
|
|
||||||
/* add local username/password */
|
/* add local username/password */
|
||||||
if (isparam("unm"))
|
if (isparam("unm"))
|
||||||
@ -1627,6 +1630,8 @@ int retrieve_url(char *url, char **buffer)
|
|||||||
|
|
||||||
closesocket(sock);
|
closesocket(sock);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -13630,13 +13635,13 @@ void show_logbook_node(LBLIST plb, LBLIST pparent, int level, int btop)
|
|||||||
else
|
else
|
||||||
sprintf(ref, "?gexp=%s", pparent->name);
|
sprintf(ref, "?gexp=%s", pparent->name);
|
||||||
|
|
||||||
rsprintf("<a href=\"%s\">-</a> ", ref);
|
rsprintf("<a href=\"%s\">- %s</a> ", ref, plb->name);
|
||||||
} else {
|
} else {
|
||||||
sprintf(ref, "?gexp=%s", plb->name);
|
sprintf(ref, "?gexp=%s", plb->name);
|
||||||
rsprintf("<a href=\"%s\">+</a> ", ref);
|
rsprintf("<a href=\"%s\">+ %s</a> ", ref, plb->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
rsprintf("%s</td></tr>\n", plb->name);
|
rsprintf("</td></tr>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plb->is_top || expand)
|
if (plb->is_top || expand)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user