mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Web: add support for the POST HTTP method. (#1097)
* Web: add support for the POST HTTP method. This patch adds support for POST in addition to the already supported GET. This is needed for implementing more complex web modules that also support configuration modifications and advanced queries. * Base web: return METHOD_NOT_ALLOWED when method isn't implemenetd. Co-authored-by: Unrud <Unrud@users.noreply.github.com>
This commit is contained in:
parent
2dc7acda17
commit
09b021f33e
6 changed files with 58 additions and 3 deletions
|
@ -63,3 +63,6 @@ class TestBaseWebRequests(BaseTest):
|
|||
self.application = Application(self.configuration)
|
||||
_, answer = self.get("/.web")
|
||||
assert answer == "custom"
|
||||
|
||||
_, answer = self.post("/.web")
|
||||
assert answer == "custom post"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue