In case of Web site access, add Content-Type to HEAD request

Desktop / LibreOffice - Giuseppe Castagno [acca-esse.eu] - 24 June 2016 07:45 UTC

This remove a necessity for another HEAD request when MediaType is requested while accessing a Web site, a cleaner implementation of d61352f58a7f750d3b0b0a9c2d6498fbb7a6e10d.

This behavior is active only on a standard Web site, when PROPFIND failed earlier on the program flow, without retrieving the property DAV:getcontenttype.

Change-Id: I60456f9ad8746c3cba3c070218243adef0c0dd01 Reviewed-on: https://gerrit.libreoffice.org/26605

9325c18 In case of Web site access, add Content-Type to HEAD request.
ucb/source/ucp/webdav-neon/webdavcontent.cxx | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share