Permalink
Browse files

Accept 405 responses to MKCOL from the WebDAV server since it often

just means that the directory already exists.



git-svn-id: http://code.sixapart.com/svn/mogilefs/trunk@1302 f67b2e87-0811-0410-a7e0-dd94e48410d6
  • Loading branch information...
1 parent b14512d commit 9cf0406693fc1db15f61992adbd2d8d50943ad96 ask committed Aug 24, 2009
Showing with 4 additions and 1 deletion.
  1. +3 −0 CHANGES
  2. +1 −1 lib/MogileFS/Device.pm
View
@@ -1,3 +1,6 @@
+ * Accept 405 responses to MKCOL from the WebDAV server since it often
+ just means that the directory already exists. (Ask Bjørn Hansen)
+
* Fix showing domain and class in mogadm output when there's only the
default class in the domain (Mark Imbriaco)
@@ -371,7 +371,7 @@ sub create_directory {
my $ans = <$sock>;
# if they don't support this method, remember that
- if ($ans && $ans =~ m!HTTP/1\.[01] (400|405|501)!) {
+ if ($ans && $ans =~ m!HTTP/1\.[01] (400|501)!) {
$self->{no_mkcol} = 1;
# TODO: move this into method on device, which propagates to parent
# and also receive from parent. so all query workers share this knowledge

0 comments on commit 9cf0406

Please sign in to comment.