This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,18 @@ All notable changes to this project will be documented in this file, in reverse
2727- [ #57 ] ( https://github.com/zendframework/zend-diactoros/pull/57 ) fixes the
2828 behavior of how the ` ServerRequestFactory ` marshals upload files when they are
2929 represented as a nested associative array.
30+ - [ #49 ] ( https://github.com/zendframework/zend-diactoros/pull/49 ) provides several
31+ fixes that ensure that Diactoros complies with the PSR-7 specification:
32+ - ` MessageInterface::getHeaderLine() ` MUST return a string (that string CAN be
33+ empty). Previously, Diactoros would return ` null ` .
34+ - If no ` Host ` header is set, the ` $preserveHost ` flag MUST be ignored when
35+ calling ` withUri() ` (previously, Diactoros would not set the ` Host ` header
36+ if ` $preserveHost ` was ` true ` , but no ` Host ` header was present).
37+ - The request method MUST be a string; it CAN be empty. Previously, Diactoros
38+ would return ` null ` .
39+ - The request MUST return a ` UriInterface ` instance from ` getUri() ` ; that
40+ instance CAN be empty. Previously, Diactoros would return ` null ` ; now it
41+ lazy-instantiates an empty ` Uri ` instance on initialization.
3042
3143## 1.0.3 - 2015-06-04
3244
You can’t perform that action at this time.
0 commit comments