Some webdav servers don't have OPTIONS configured. Option makes sense for browsers and not clients. Looking at other ios clients for webdav, they seem to use PROPFIND to verify the server credentials instead of using OPTIONS. Is it possible for switch this so OPTIONS calls doesn't need to be configured on the server?
|
func checkServer() { |
|
guard let url = URL(string: uri) else { |
|
activityIndicatorView.stopAnimating() |
|
return |
|
} |
|
testState = 0 |
|
var request: URLRequest = URLRequest(url: url) |
|
request.httpMethod = "OPTIONS" |
|
let task = dataSession.dataTask(with: request) |
|
|
|
task.resume() |
|
} |
Some webdav servers don't have OPTIONS configured. Option makes sense for browsers and not clients. Looking at other ios clients for webdav, they seem to use PROPFIND to verify the server credentials instead of using OPTIONS. Is it possible for switch this so OPTIONS calls doesn't need to be configured on the server?
ccViewer/RemoteCloud/RemoteCloud/Storages/WebDAVStorage.swift
Lines 197 to 208 in a58bbc7