File tree Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Expand file tree Collapse file tree 2 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -101,18 +101,17 @@ public function getHeaderLine($name)
101
101
*/
102
102
public function getHeaderLineData (string $ name ): ?array
103
103
{
104
- if (is_null ($ this ->headerLine )) {
105
- $ this ->headerLine = array ();
106
- $ headerArr = $ this ->getHeader ($ name );
107
- foreach ($ headerArr as $ key => $ val ) {
108
- if (is_numeric ($ key )) {
109
- $ this ->headerLine [] = $ val ;
110
- } else {
111
- $ this ->headerLine [] = "{$ key } {$ val }" ;
112
- }
104
+
105
+ $ this ->headerLine = array ();
106
+ $ headerArr = $ this ->getHeader ($ name );
107
+ foreach ($ headerArr as $ key => $ val ) {
108
+ if (is_numeric ($ key )) {
109
+ $ this ->headerLine [] = $ val ;
110
+ } else {
111
+ $ this ->headerLine [] = "{$ key } {$ val }" ;
113
112
}
114
113
}
115
-
114
+
116
115
return $ this ->headerLine ;
117
116
}
118
117
Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ public function getReasonPhrase()
115
115
116
116
public function createHeaders ()
117
117
{
118
+ /*
119
+ print_r($this->getHeaders());
120
+ die();
121
+ */
118
122
foreach ($ this ->getHeaders () as $ key => $ val ) {
119
123
$ value = $ this ->getHeaderLine ($ key );
120
124
header ("{$ key }: {$ value }" );
You can’t perform that action at this time.
0 commit comments