[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 02/02: From: Christian Hesse <address@hidde
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 02/02: From: Christian Hesse <address@hidden> Date: Thu, 8 Nov 2018 00:15:29 +0100 Subject: [PATCH 1/1] fix tests with curl |
Date: |
Mon, 12 Nov 2018 19:53:05 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository libmicrohttpd.
commit ff551c467120239f15080d33f7d529359aea077c
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Nov 12 19:52:49 2018 +0100
From: Christian Hesse <address@hidden>
Date: Thu, 8 Nov 2018 00:15:29 +0100
Subject: [PATCH 1/1] fix tests with curl
Starting with curl 7.62.0 some tests fail. The commit in question is
46e16406 [0] ("url: use the URL API internally as well").
Analyzing the changed behavior reveals that the url given to
curl_easy_setopt() with CURLOPT_URL is no longer encoded. Looking at the
documentation [1] this behavior is correct, the "parameter should be a
char * to a zero terminated string which must be URL-encoded [...]".
So let's just give a valid url...
[0]
https://github.com/curl/curl/commit/46e164069d1a5230e4e64cbd2ff46c46cce056bb
[1] https://curl.haxx.se/libcurl/c/CURLOPT_URL.html
Signed-off-by: Christian Hesse <address@hidden>
Signed-off: CG
---
ChangeLog | 3 +++
src/testcurl/test_digestauth.c | 2 +-
src/testcurl/test_digestauth_with_arguments.c | 2 +-
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5c1d625a..447562df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Mon Nov 12 19:50:43 CET 2018
+ Fix #5473 (test case failure due to change in libcurl). -eworm
+
Thu Nov 8 14:53:27 CET 2018
Add MHD_create_response_from_buffer_with_free_callback. -CG
diff --git a/src/testcurl/test_digestauth.c b/src/testcurl/test_digestauth.c
index 48c7a87a..89076608 100644
--- a/src/testcurl/test_digestauth.c
+++ b/src/testcurl/test_digestauth.c
@@ -218,7 +218,7 @@ testDigestAuth ()
{ MHD_stop_daemon (d); return 32; }
port = (int)dinfo->port;
}
- sprintf(url, "http://127.0.0.1:%d/bar%%20 foo?a=bü%%20", port);
+ sprintf(url, "http://127.0.0.1:%d/bar%20foo%3Fkey%3Dvalue", port);
c = curl_easy_init ();
curl_easy_setopt (c, CURLOPT_URL, url);
curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer);
diff --git a/src/testcurl/test_digestauth_with_arguments.c
b/src/testcurl/test_digestauth_with_arguments.c
index 107d2256..17d0f7a2 100644
--- a/src/testcurl/test_digestauth_with_arguments.c
+++ b/src/testcurl/test_digestauth_with_arguments.c
@@ -213,7 +213,7 @@ testDigestAuth ()
{ MHD_stop_daemon (d); return 32; }
port = (int)dinfo->port;
}
- sprintf(url, "http://127.0.0.1:%d/foo?key=value", port);
+ sprintf(url, "http://127.0.0.1:%d/bar%20foo%3Fkey%3Dvalue", port);
c = curl_easy_init ();
curl_easy_setopt (c, CURLOPT_URL, url);
curl_easy_setopt (c, CURLOPT_WRITEFUNCTION, ©Buffer);
--
To stop receiving notification emails like this one, please contact
address@hidden