Commit dcc5ce67 authored by Max Kellermann's avatar Max Kellermann

storage/curl: request the "resourcetype" property to fix update

Without requesting the property, "good" WebDAV servers would not send it, and so MPD could never recognize a directory, failing the database update. Closes https://github.com/MusicPlayerDaemon/MPD/issues/660
parent 23d08820
ver 0.21.16 (not yet released) ver 0.21.16 (not yet released)
* storage
- curl: request the "resourcetype" property to fix database update
* update * update
- fix crash when music_directory is not a directory - fix crash when music_directory is not a directory
......
...@@ -277,6 +277,7 @@ public: ...@@ -277,6 +277,7 @@ public:
request.SetOption(CURLOPT_POSTFIELDS, request.SetOption(CURLOPT_POSTFIELDS,
"<?xml version=\"1.0\"?>\n" "<?xml version=\"1.0\"?>\n"
"<a:propfind xmlns:a=\"DAV:\">" "<a:propfind xmlns:a=\"DAV:\">"
"<a:prop><a:resourcetype/></a:prop>"
"<a:prop><a:getcontenttype/></a:prop>" "<a:prop><a:getcontenttype/></a:prop>"
"<a:prop><a:getcontentlength/></a:prop>" "<a:prop><a:getcontentlength/></a:prop>"
"</a:propfind>"); "</a:propfind>");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment