Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 534512c

Browse files
committed
Updated CHANGELOG for #49
1 parent 518d102 commit 534512c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)