support https in WebDAV-Auth

fixes # 2056

@LukasReschke @karlitschek THX