[git] Assuan - branch, master, updated. libassuan-2.3.0-4-gdda9c84
by Werner Koch
cvs at cvs.gnupg.org
Mon Oct 26 21:08:40 CET 2015
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPC library used by GnuPG".
The branch, master has been updated
via dda9c84bc67326a6d2bef1e5c45b5de8b67eeb40 (commit)
from 4061ac57ca84a1e0ed779096897a160d49b50c03 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dda9c84bc67326a6d2bef1e5c45b5de8b67eeb40
Author: Werner Koch <wk at gnupg.org>
Date: Mon Oct 26 21:04:54 2015 +0100
Tests: Cope with broken HTTP servers.
* tests/socks5.c (main): Use GET instead of HEAD
diff --git a/tests/socks5.c b/tests/socks5.c
index 7aa2b71..68659fc 100644
--- a/tests/socks5.c
+++ b/tests/socks5.c
@@ -69,6 +69,7 @@ main (int argc, char **argv)
assuan_fd_t sock = ASSUAN_INVALID_FD;
estream_t infp, outfp;
int c;
+ int lf_seen;
if (argc)
{
@@ -279,13 +280,22 @@ main (int argc, char **argv)
log_fatal ("opening outbound stream failed: %s\n", gpg_strerror (err));
}
- es_fputs ("HEAD / HTTP/1.0\r\n\r\n", outfp);
+ es_fputs ("GET / HTTP/1.0\r\n\r\n", outfp);
es_fflush (outfp);
+ lf_seen = 0;
while ((c = es_fgetc (infp)) != EOF)
{
+ if (c == '\r')
+ continue;
putchar (c);
if (c == '\n')
- break;
+ {
+ if (lf_seen)
+ break;
+ lf_seen = 1;
+ }
+ else
+ lf_seen = 0;
}
es_fclose (infp);
es_fclose (outfp);
-----------------------------------------------------------------------
Summary of changes:
tests/socks5.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
hooks/post-receive
--
IPC library used by GnuPG
http://git.gnupg.org
More information about the Gnupg-commits
mailing list