[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r22566 - libmicrohttpd/src/testcurl/https
From: |
gnunet |
Subject: |
[GNUnet-SVN] r22566 - libmicrohttpd/src/testcurl/https |
Date: |
Mon, 9 Jul 2012 13:43:34 +0200 |
Author: grothoff
Date: 2012-07-09 13:43:34 +0200 (Mon, 09 Jul 2012)
New Revision: 22566
Modified:
libmicrohttpd/src/testcurl/https/tls_test_common.c
Log:
-LRN: fix url generation on MinGW32
Modified: libmicrohttpd/src/testcurl/https/tls_test_common.c
===================================================================
--- libmicrohttpd/src/testcurl/https/tls_test_common.c 2012-07-09 11:43:14 UTC
(rev 22565)
+++ libmicrohttpd/src/testcurl/https/tls_test_common.c 2012-07-09 11:43:34 UTC
(rev 22566)
@@ -276,6 +276,26 @@
strerror (errno));
ret = -1;
}
+#if WINDOWS
+ {
+ int i;
+ for (i = 0; i < doc_path_len; i++)
+ {
+ if (doc_path[i] == 0)
+ break;
+ if (doc_path[i] == '\\')
+ {
+ doc_path[i] = '/';
+ }
+ if (doc_path[i] != ':')
+ continue;
+ if (i == 0)
+ break;
+ doc_path[i] = doc_path[i - 1];
+ doc_path[i - 1] = '/';
+ }
+ }
+#endif
/* construct url - this might use doc_path */
if (sprintf (url, "%s:%d%s/%s", "https://127.0.0.1", port,
doc_path, "urlpath") < 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r22566 - libmicrohttpd/src/testcurl/https,
gnunet <=