mirror of
https://github.com/moparisthebest/curl
synced 2024-12-26 10:08:48 -05:00
6d930d7306
After 957bc1881e686f9714c4e6a01bf33535091f0e21, we no longer compute an expected_size for directories. This has the upshot that when we compare even an empty Range with the available size, we fail. This brings back the previous behaviour, which was to succeed, but with empty content. This also removes the "Accept-ranges: bytes" header, which is nonsensical on directories. Adds test 3016 Fixes #6845 Closes #6846
35 lines
373 B
Plaintext
35 lines
373 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
HTTP
|
|
HTTP GET
|
|
FILE
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
file
|
|
</server>
|
|
<name>
|
|
GET a directory using file://
|
|
</name>
|
|
<!-- doesn't work on win32, see #6379 -->
|
|
<features>
|
|
!win32
|
|
</features>
|
|
<command>
|
|
file://%PWD/
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<errorcode>
|
|
0
|
|
</errorcode>
|
|
</verify>
|