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

Commit b382c6e

Browse files
committed
Merge branch 'hotfix/133'
Close #133
2 parents 1689668 + af8e712 commit b382c6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ All notable changes to this project will be documented in this file, in reverse
1818

1919
### Fixed
2020

21-
- Nothing.
21+
- [#133](https://github.com/zendframework/zend-http/pull/133) Adds back missing
22+
sprintf placeholder in CacheControl exception message
2223

2324
## 2.7.0 - 2017-10-13
2425

src/Header/CacheControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function fromString($headerLine)
3939
// check to ensure proper header type for this factory
4040
if (strtolower($name) !== 'cache-control') {
4141
throw new Exception\InvalidArgumentException(sprintf(
42-
'Invalid header line for Cache-Control string: ""',
42+
'Invalid header line for Cache-Control string: "%s"',
4343
$name
4444
));
4545
}

0 commit comments

Comments
 (0)