Skip to content

Commit 5a5533e

Browse files
authored
fix GetBucketVersioning XML parsing (#181)
Fixes #180 Signed-off-by: Bala.FA <[email protected]>
1 parent 760abde commit 5a5533e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/baseclient.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,11 @@ GetBucketVersioningResponse BaseClient::GetBucketVersioning(
854854

855855
pugi::xpath_node text;
856856

857-
if (!root.node().select_node("Status")) {
857+
if (root.node().select_node("Status")) {
858858
text = root.node().select_node("Status/text()");
859859
response.status = (strcmp(text.node().value(), "Enabled") == 0);
860860
}
861-
if (!root.node().select_node("MFADelete")) {
861+
if (root.node().select_node("MFADelete")) {
862862
text = root.node().select_node("MFADelete/text()");
863863
response.mfa_delete = (strcmp(text.node().value(), "Enabled") == 0);
864864
}

0 commit comments

Comments
 (0)