Skip to content

Commit c51a56b

Browse files
author
Paul M. Jones
committed
Merge pull request #25 from geekwright/psr7mpfd
[PSR-7] Include multipart/form-data in parsed body specified behaviors
2 parents 4727540 + 96d1a6e commit c51a56b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/ServerRequestInterface.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,9 @@ public function getFileParams();
136136
/**
137137
* Retrieve any parameters provided in the request body.
138138
*
139-
* If the request Content-Type is application/x-www-form-urlencoded and the
140-
* request method is POST, this method MUST return the contents of $_POST.
139+
* If the request Content-Type is either application/x-www-form-urlencoded
140+
* or multipart/form-data, and the request method is POST, this method MUST
141+
* return the contents of $_POST.
141142
*
142143
* Otherwise, this method may return any results of deserializing
143144
* the request body content; as parsing returns structured content, the
@@ -154,9 +155,9 @@ public function getParsedBody();
154155
*
155156
* These MAY be injected during instantiation.
156157
*
157-
* If the request Content-Type is application/x-www-form-urlencoded and the
158-
* request method is POST, use this method ONLY to inject the contents of
159-
* $_POST.
158+
* If the request Content-Type is either application/x-www-form-urlencoded
159+
* or multipart/form-data, and the request method is POST, use this method
160+
* ONLY to inject the contents of $_POST.
160161
*
161162
* The data IS NOT REQUIRED to come from $_POST, but MUST be the results of
162163
* deserializing the request body content. Deserialization/parsing returns

0 commit comments

Comments
 (0)