Skip to content
  • chli1's avatar
    fix BadRequest error if CONTENT_LENGTH not set · 712487c8
    chli1 authored
    If client does not send content length header on webdav upload (e.g. because the content comes from a stream and its length is not predictable) the put() method should not try to compare the content length value with the actually amount of received data, because this will always fail and results in a BadRequest exception. So the check will only be performed if $_SERVER['CONTENT_LENGTH'] is set.
    712487c8