src/Tweeper.php: make enclosure validate when there is no Content-Length
authorAntonio Ospite <ao2@ao2.it>
Fri, 16 Nov 2018 22:06:38 +0000 (23:06 +0100)
committerAntonio Ospite <ao2@ao2.it>
Fri, 16 Nov 2018 22:06:38 +0000 (23:06 +0100)
commitf907de7cf25707848bee5c637dc440cb26714ffd
tree96598356d9c4ef9016b3bddfec7fdfdbe650e713
parentc96f8af95c614476d3d6f9ba7330b938a2efedf0
src/Tweeper.php: make enclosure validate when there is no Content-Length

When the server does not provide a Content-Length header, curl_getinfo()
would return a negative value for "download_content_length".

However RSS recommends to use 0 when the enclosure's size cannot be
determined.

See: https://www.feedvalidator.org/docs/error/UseZeroForUnknown.html
src/Tweeper.php