summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSergey Markelov <sergey@solidstatenetworks.com>2021-09-27 08:31:52 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-09-27 08:32:41 +0200
commit4b997626b1182a8a7d974f2957b3ad8eaebd8817 (patch)
tree0e890625cd24507956daa73feed58eb1ed40e230 /tests
parent3363eeb26298b9d30fc5ec29101e5dd205d04db9 (diff)
downloadcurl-4b997626b1182a8a7d974f2957b3ad8eaebd8817.tar.gz
urlapi: support UNC paths in file: URLs on Windows
- file://host.name/path/file.txt is a valid UNC path \\host.name\path\files.txt to a non-local file transformed into URI (RFC 8089 Appendix E.3) - UNC paths on other OSs must be smb: URLs Closes #7366
Diffstat (limited to 'tests')
-rw-r--r--tests/data/test2080bin20673 -> 20675 bytes
-rw-r--r--tests/libtest/lib1560.c4
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/data/test2080 b/tests/data/test2080
index 9a337031d..9c8d538fc 100644
--- a/tests/data/test2080
+++ b/tests/data/test2080
Binary files differ
diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c
index 3d341ddb4..f7529592c 100644
--- a/tests/libtest/lib1560.c
+++ b/tests/libtest/lib1560.c
@@ -187,6 +187,10 @@ static const struct testcase get_parts_list[] ={
{"file:///C:\\programs\\foo",
"file | [11] | [12] | [13] | [14] | [15] | C:\\programs\\foo | [16] | [17]",
CURLU_DEFAULT_SCHEME, 0, CURLUE_OK},
+ {"file://host.example.com/Share/path/to/file.txt",
+ "file | [11] | [12] | [13] | host.example.com | [15] | "
+ "//host.example.com/Share/path/to/file.txt | [16] | [17]",
+ CURLU_DEFAULT_SCHEME, 0, CURLUE_OK},
#endif
{"https://example.com/color/#green?no-red",
"https | [11] | [12] | [13] | example.com | [15] | /color/ | [16] | "