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
This commit is contained in:
parent
23d08820a2
commit
dcc5ce6792
2
NEWS
2
NEWS
|
@ -1,4 +1,6 @@
|
||||||
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:
|
||||||
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>");
|
||||||
|
|
Loading…
Reference in New Issue