aboutsummaryrefslogtreecommitdiff
path: root/tests/data/test1308
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-13 22:32:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-13 22:32:00 +0200
commit0aedccc18a33a7785350d8d622ef273c727690cf (patch)
treeba4b8515fb0e38faea400c30eb66d69e418bd522 /tests/data/test1308
parent85881f9f35832dbd4ef28940267f8fa30cbb867e (diff)
curl_formget: fix FILE * leak
Properly deal with the fact that the last fread() call most probably is a short read, and when using callbacks in fact all calls can be short reads. No longer consider a file read done until it returns a 0 from the read function. Reported by: Aaron Orenstein Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html
Diffstat (limited to 'tests/data/test1308')
-rw-r--r--tests/data/test13083
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/data/test1308 b/tests/data/test1308
index fe7509688..88e9771dd 100644
--- a/tests/data/test1308
+++ b/tests/data/test1308
@@ -23,6 +23,9 @@ formpost unit tests
<tool>
unit1308
</tool>
+<file name="log/test-1308">
+Piece of the file that is to uploaded as a formpost
+</file>
</client>
</testcase>