Quellcode durchsuchen

test_digestauth{._with_arguments}: do test really with arguments

Evgeny Grin (Karlson2k) vor 3 Jahren
Ursprung
Commit
5ba4b7709f
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 1 1
      src/testcurl/test_digestauth.c
  2. 2 1
      src/testcurl/test_digestauth_with_arguments.c

+ 1 - 1
src/testcurl/test_digestauth.c

@@ -216,7 +216,7 @@ _checkCURLE_OK_func (CURLcode code, const char *curlFunc,
 /* Could be increased to facilitate debugging */
 /* Could be increased to facilitate debugging */
 #define TIMEOUTS_VAL 5
 #define TIMEOUTS_VAL 5
 
 
-#define MHD_URI_BASE_PATH "/bar%20foo%3Fkey%3Dvalue"
+#define MHD_URI_BASE_PATH "/bar%20foo?key=value"
 
 
 #define PAGE \
 #define PAGE \
   "<html><head><title>libmicrohttpd demo</title></head><body>Access granted</body></html>"
   "<html><head><title>libmicrohttpd demo</title></head><body>Access granted</body></html>"

+ 2 - 1
src/testcurl/test_digestauth_with_arguments.c

@@ -234,7 +234,8 @@ testDigestAuth ()
   }
   }
   snprintf (url,
   snprintf (url,
             sizeof (url),
             sizeof (url),
-            "http://127.0.0.1:%d/bar%%20foo%%3Fkey%%3Dvalue",
+            "http://127.0.0.1:%d/bar%%20foo?"
+            "key=value&more=even%%20more&empty&=no_key&&same=one&&same=two",
             port);
             port);
   c = curl_easy_init ();
   c = curl_easy_init ();
   curl_easy_setopt (c, CURLOPT_URL, url);
   curl_easy_setopt (c, CURLOPT_URL, url);