Skip to content

Commit

Permalink
Accept 405 responses to MKCOL from the WebDAV server since it often
Browse files Browse the repository at this point in the history
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
ask committed Aug 24, 2009
1 parent b14512d commit 9cf0406
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES
@@ -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)

Expand Down
2 changes: 1 addition & 1 deletion lib/MogileFS/Device.pm
Expand Up @@ -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
Expand Down

0 comments on commit 9cf0406

Please sign in to comment.