fixed a bug when visiting webdav server in browsers