]> git.ipfire.org Git - thirdparty/curl.git/commit
altsvc: clone setting in curl_easy_duphandle 5923/head
authorDaniel Stenberg <daniel@haxx.se>
Sat, 5 Sep 2020 19:21:26 +0000 (21:21 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 6 Sep 2020 07:54:54 +0000 (09:54 +0200)
commitf93455eb04b57b2d002244bed1f0b59b94c2f0c7
treea403a1dffdc45c2b37fa33a69f1aa0af3b1bb52c
parent8ca54a03ea08a7b0cf0a402018f329bd93124216
altsvc: clone setting in curl_easy_duphandle

The cache content is not duplicated, like other caches, but the setting
and specified file name are.

Test 1908 is extended to verify this somewhat. Since the duplicated
handle gets the same file name, the test unfortunately overwrites the
same file twice (with different contents) which makes it hard to check
automatically.

Closes #5923
lib/altsvc.c
lib/altsvc.h
lib/easy.c
lib/url.c
tests/data/test1908
tests/libtest/lib1908.c
tests/unit/unit1654.c