From 96d1a6ef337d1d4a9fb51686e17ba082134a34c8 Mon Sep 17 00:00:00 2001 From: geekwright Date: Mon, 23 Feb 2015 11:17:25 -0600 Subject: [PATCH] Include multipart/form-data in parsed body specified behaviors --- src/ServerRequestInterface.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/ServerRequestInterface.php b/src/ServerRequestInterface.php index bc1f976..9739b21 100644 --- a/src/ServerRequestInterface.php +++ b/src/ServerRequestInterface.php @@ -136,8 +136,9 @@ public function getFileParams(); /** * Retrieve any parameters provided in the request body. * - * If the request Content-Type is application/x-www-form-urlencoded and the - * request method is POST, this method MUST return the contents of $_POST. + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, this method MUST + * return the contents of $_POST. * * Otherwise, this method may return any results of deserializing * the request body content; as parsing returns structured content, the @@ -154,9 +155,9 @@ public function getParsedBody(); * * These MAY be injected during instantiation. * - * If the request Content-Type is application/x-www-form-urlencoded and the - * request method is POST, use this method ONLY to inject the contents of - * $_POST. + * If the request Content-Type is either application/x-www-form-urlencoded + * or multipart/form-data, and the request method is POST, use this method + * ONLY to inject the contents of $_POST. * * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of * deserializing the request body content. Deserialization/parsing returns