File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
- ` Fixed ` for any bug fixes.
13
13
- ` Security ` in case of vulnerabilities
14
14
15
+ ## [ 1.1.1] - 2020.11.23
16
+
17
+ ### Fixed
18
+
19
+ - Fixed bug in ` send ` method where ` $_SERVER ` may not be set.
20
+
15
21
## [ 1.1.0] - 2020.10.20
16
22
17
23
### Added
Original file line number Diff line number Diff line change @@ -258,7 +258,15 @@ public function send(): void
258
258
259
259
// -------------------- Status code --------------------
260
260
261
- $ protocol = $ _SERVER ['SERVER_PROTOCOL ' ];
261
+ if (isset ($ _SERVER ['SERVER_PROTOCOL ' ])) {
262
+
263
+ $ protocol = $ _SERVER ['SERVER_PROTOCOL ' ];
264
+
265
+ } else {
266
+
267
+ $ protocol = 'HTTP/1.1 ' ;
268
+
269
+ }
262
270
263
271
$ status = $ this ->getStatusCode ();
264
272
You can’t perform that action at this time.
0 commit comments