gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] branch master updated (2962b6e4 -> ff551c46


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated (2962b6e4 -> ff551c46)
Date: Mon, 12 Nov 2018 19:53:03 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository libmicrohttpd.

    from 2962b6e4 add MHD_create_response_from_buffer_with_free_callback
     new e1f2253a fix ftbfs
     new ff551c46 From: Christian Hesse <address@hidden> Date: Thu, 8 Nov 2018 
00:15:29 +0100 Subject: [PATCH 1/1] fix tests with curl

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ChangeLog                                     | 3 +++
 src/microhttpd/response.c                     | 4 ++--
 src/testcurl/test_digestauth.c                | 2 +-
 src/testcurl/test_digestauth_with_arguments.c | 2 +-
 4 files changed, 7 insertions(+), 4 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/microhttpd/response.c b/src/microhttpd/response.c
index 08b7805d..21e23a8a 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -720,8 +720,8 @@ MHD_create_response_from_buffer_with_free_callback (size_t 
size,
 
   r = MHD_create_response_from_data (size,
                                     buffer,
-                                    GNUNET_YES,
-                                    GNUNET_NO);
+                                    MHD_YES,
+                                    MHD_NO);
   if (NULL == r)
     return r;
   r->crfc = crfc;
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, &copyBuffer);
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, &copyBuffer);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]