From f63bef7483ef35a33b41ab7c0c55edf0bc4fb576 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 14 Aug 2011 13:00:18 -0400 Subject: [PATCH] Extract PUT data as POST params --- http/root_controller.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http/root_controller.php b/http/root_controller.php index 85a7174..51b6940 100644 --- a/http/root_controller.php +++ b/http/root_controller.php @@ -104,6 +104,10 @@ class RootController $this->request->url = $url; $this->request->http_method = $this->request->data['_SERVER']['REQUEST_METHOD']; + // Extract any PUT data as POST params. + if ($this->request->http_method == 'PUT') + parse_str(file_get_contents('php://input'), $this->request->data['_POST']); + $this->delegate->OnInitialRequest($this->request, $this->response); // Dispatch the request to an Action. -- 2.43.5