From 91d6a8ef951635fc69211e162c77a8e38fa393d6 Mon Sep 17 00:00:00 2001 From: shallowmallow Date: Wed, 21 Aug 2024 10:01:45 +0200 Subject: [PATCH] so posts with null bodies work too like @:post("/deleteLastOne", XXX , Json) public function deleteLastOne(); --- src/rest/RestOperation.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/RestOperation.hx b/src/rest/RestOperation.hx index 4ee8f1a..50fd50a 100644 --- a/src/rest/RestOperation.hx +++ b/src/rest/RestOperation.hx @@ -45,7 +45,7 @@ class RestOperation ContentTypes.ApplicationJson]; } else if (!restRequest.headers.exists(StandardHeaders.ContentType)) {