File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public function normalizeHeaders(array $server): array
9090 $ headers = [];
9191
9292 foreach ($ server as $ name => $ value ) {
93- if (!is_string ($ name ) || $ value === '' ) {
93+ if (!is_string ($ name )) {
9494 continue ;
9595 }
9696
@@ -102,6 +102,7 @@ public function normalizeHeaders(array $server): array
102102
103103 if (strpos ($ name , 'HTTP_ ' ) === 0 ) {
104104 $ headers [$ this ->normalizeHeaderName (substr ($ name , 5 ))] = $ value ;
105+ continue ;
105106 }
106107
107108 if (strpos ($ name , 'CONTENT_ ' ) === 0 ) {
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function setUp(): void
2424 {
2525 $ this ->normalizer = new SapiNormalizer ();
2626 $ this ->server = [
27+ 'value-without-name ' ,
2728 'HTTPS ' => 'on ' ,
2829 'SERVER_PORT ' => '443 ' ,
2930 'REQUEST_METHOD ' => 'GET ' ,
You can’t perform that action at this time.
0 commit comments