Skip to content

Commit 73ada20

Browse files
committed
[network-protocol][http] try GET if PROPFIND fails.
1 parent c3719ec commit 73ada20

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/network-protocol/HTTP.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,13 @@ bool NetworkProtocolHTTP::open_dir_handle()
174174
"<D:prop>\r\n<D:displayname />\r\n<D:getcontentlength /><D:resourcetype /></D:prop>\r\n"
175175
"</D:propfind>\r\n");
176176

177+
// If Method not allowed, try GET.
178+
if (resultCode == 405)
179+
{
180+
httpOpenMode = GET;
181+
return false;
182+
}
183+
177184
if (resultCode > 399)
178185
{
179186
#ifdef VERBOSE_PROTOCOL

0 commit comments

Comments
 (0)