Skip to content

Commit

Permalink
fix: Add Proper URL Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexsLaboratory committed Aug 29, 2021
1 parent 27bfa9c commit f709a74
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Lowem/GeoserverPHP/Workspaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,9 @@ public function delete($workspaceName, $recurse = FALSE): string {
}
}
$recurseString = $recurse ? "true" : "false";
$curl = new EasyCurl($this->getBaseURL() . "/workspaces/$workspaceName");
$curl = new EasyCurl($this->getBaseURL() . "/workspaces/$workspaceName?recurse=$recurseString");
$curl->setBasicAuth($this->getUsername(), $this->getPassword());
$curl->delete([
"recurse" => $recurseString
]);
$curl->delete();
return $curl->getExecMessage();
}
}

0 comments on commit f709a74

Please sign in to comment.