Fixed a memory leak when specifying a proxy with a file: URL and added

test case 288 to verify it.
This commit is contained in:
Dan Fandrich
2007-03-24 02:15:20 +00:00
parent b7131009fb
commit 0dd1219668
4 changed files with 114 additions and 61 deletions

View File

@@ -37,4 +37,4 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
test274 test275 test524 test525 test276 test277 test526 test527 test528 \
test530 DISABLED test278 test279 test531 test280 test529 test532 test533 \
test534 test535 test281 test537 test282 test283 test284 test538 test285 \
test286 test307 test308 test287 test400
test286 test307 test308 test287 test400 test288

42
tests/data/test288 Normal file
View File

@@ -0,0 +1,42 @@
<testcase>
# Server-side
<reply>
<data>
foo
bar
bar
foo
moo
</data>
</reply>
# Client-side
<client>
<server>
none
</server>
<features>
file
</features>
<name>
file:// with (unsupported) proxy, authentication and range
</name>
<setenv>
all_proxy=http://fake:user@%HOSTIP:%HTTPPORT/
</setenv>
<command>
file://localhost/%PWD/log/test288.txt
</command>
<file name="log/test288.txt">
foo
bar
bar
foo
moo
</file>
</client>
# Verify data after the test has been "shot"
<verify>
</verify>
</testcase>