aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/https/tls_test_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/https/tls_test_common.c')
-rw-r--r--src/testcurl/https/tls_test_common.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c
index 7c6441f7..e9227796 100644
--- a/src/testcurl/https/tls_test_common.c
+++ b/src/testcurl/https/tls_test_common.c
@@ -276,6 +276,26 @@ gen_test_file_url (char *url, int port)
276 strerror (errno)); 276 strerror (errno));
277 ret = -1; 277 ret = -1;
278 } 278 }
279#if WINDOWS
280 {
281 int i;
282 for (i = 0; i < doc_path_len; i++)
283 {
284 if (doc_path[i] == 0)
285 break;
286 if (doc_path[i] == '\\')
287 {
288 doc_path[i] = '/';
289 }
290 if (doc_path[i] != ':')
291 continue;
292 if (i == 0)
293 break;
294 doc_path[i] = doc_path[i - 1];
295 doc_path[i - 1] = '/';
296 }
297 }
298#endif
279 /* construct url - this might use doc_path */ 299 /* construct url - this might use doc_path */
280 if (sprintf (url, "%s:%d%s/%s", "https://127.0.0.1", port, 300 if (sprintf (url, "%s:%d%s/%s", "https://127.0.0.1", port,
281 doc_path, "urlpath") < 0) 301 doc_path, "urlpath") < 0)