mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
fix
This commit is contained in:
@@ -29,6 +29,8 @@
|
||||
#include <curl/curl.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define DEBUG_CURL_VERBOSE 0
|
||||
|
||||
#define PAGE_NOT_FOUND "<html><head><title>File not found</title></head><body>File not found</body></html>"
|
||||
|
||||
#define MHD_E_SERVER_INIT "Error: failed to start server\n"
|
||||
@@ -162,7 +164,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version,
|
||||
test_file_name);
|
||||
|
||||
c = curl_easy_init ();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG_CURL_VERBOSE
|
||||
curl_easy_setopt (c, CURLOPT_VERBOSE, 1);
|
||||
#endif
|
||||
curl_easy_setopt (c, CURLOPT_URL, url);
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "microhttpd.h"
|
||||
#include <curl/curl.h>
|
||||
|
||||
#define DEBUG_CURL_VERBOSE 0
|
||||
#define EMPTY_PAGE "<html><head><title>Empty page</title></head><body>Empty page</body></html>"
|
||||
|
||||
#include "tls_test_keys.h"
|
||||
@@ -166,7 +167,7 @@ test_query_session ()
|
||||
return 2;
|
||||
|
||||
c = curl_easy_init ();
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG_CURL_VERBOSE
|
||||
curl_easy_setopt (c, CURLOPT_VERBOSE, 1);
|
||||
#endif
|
||||
curl_easy_setopt (c, CURLOPT_URL, url);
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <curl/curl.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#define DEBUG_CURL_VERBOSE 0
|
||||
#define PAGE_NOT_FOUND "<html><head><title>File not found</title></head><body>File not found</body></html>"
|
||||
|
||||
#define MHD_E_MEM "Error: memory error\n"
|
||||
@@ -170,7 +171,7 @@ test_daemon_get (FILE * test_fd, char *cipher_suite, int proto_version)
|
||||
doc_path, test_file_name);
|
||||
|
||||
c = curl_easy_init ();
|
||||
#ifdef DEBUG
|
||||
#if DEBUG_CURL_VERBOSE
|
||||
curl_easy_setopt (c, CURLOPT_VERBOSE, 1);
|
||||
#endif
|
||||
curl_easy_setopt (c, CURLOPT_URL, url);
|
||||
|
||||
Reference in New Issue
Block a user