File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 5.0.3] - 2020-02-20
9
+ ### Changed
10
+ - Content types are now allowed to contain optional character set data
11
+ (e.g. "application/json; charset=utf8")
12
+
8
13
## [ 5.0.3] - 2019-09-19
9
14
### Changed
10
15
- In the past, when the client encounters a transmission error, after receiving
Original file line number Diff line number Diff line change @@ -51,7 +51,9 @@ public function __construct($evaluator)
51
51
52
52
public function reply ()
53
53
{
54
- if (!isset ($ _SERVER ['CONTENT_TYPE ' ]) || ($ _SERVER ['CONTENT_TYPE ' ] !== self ::$ CONTENT_TYPE )) {
54
+ $ contentType = $ _SERVER ['CONTENT_TYPE ' ] ?? '' ;
55
+
56
+ if (strncmp ($ contentType , self ::$ CONTENT_TYPE , strlen (self ::$ CONTENT_TYPE )) !== 0 ) {
55
57
self ::errorInvalidContentType ();
56
58
}
57
59
You can’t perform that action at this time.
0 commit comments