| 232 | } |
| 233 | |
| 234 | bool WebDAV::acceptsType(AsyncWebServerRequest* request, const char* type) { |
| 235 | if (request->hasHeader(T_ACCEPT)) { |
| 236 | auto types = std::string(request->getHeader(T_ACCEPT)->value().c_str()); |
| 237 | return types.find(type) != std::string::npos; |
| 238 | } |
| 239 | return false; |
| 240 | } |
| 241 | |
| 242 | void WebDAV::handlePropfind(const FluidPath& fpath, DavResource resource, AsyncWebServerRequest* request) { |
| 243 | // check depth header |