From 10750b5ce321efe367d2dd7ab5f77049dae1ecd0 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Tue, 17 Mar 2015 01:23:30 -0700 Subject: [PATCH] getBody should check for PATCH method. --- VERSION | 2 +- flight/net/Request.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index c114700..f2ae0b4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.2.11 +1.2.12 diff --git a/flight/net/Request.php b/flight/net/Request.php index 97f2608..c21ef27 100644 --- a/flight/net/Request.php +++ b/flight/net/Request.php @@ -205,7 +205,7 @@ class Request { $method = self::getMethod(); - if ($method == 'POST' || $method == 'PUT') { + if ($method == 'POST' || $method == 'PUT' || $method == 'PATCH') { $body = file_get_contents('php://input'); }