File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed
lib/internal/Magento/Framework/HTTP/PhpEnvironment Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,6 @@ class Response extends \Laminas\Http\PhpEnvironment\Response implements \Magento
19
19
*/
20
20
protected $ isRedirect = false ;
21
21
22
- /**
23
- * @var bool
24
- */
25
- private $ headersSent ;
26
-
27
22
/**
28
23
* @inheritdoc
29
24
*/
@@ -192,27 +187,4 @@ public function __sleep()
192
187
{
193
188
return ['content ' , 'isRedirect ' , 'statusCode ' ];
194
189
}
195
-
196
- /**
197
- * Sending provided headers.
198
- *
199
- * Had to be overridden because the original did not work correctly with multi-headers.
200
- */
201
- public function sendHeaders ()
202
- {
203
- if ($ this ->headersSent ()) {
204
- return $ this ;
205
- }
206
-
207
- $ status = $ this ->renderStatusLine ();
208
- header ($ status );
209
-
210
- /** @var \Laminas\Http\Header\HeaderInterface $header */
211
- foreach ($ this ->getHeaders () as $ header ) {
212
- header ($ header ->toString (), false );
213
- }
214
-
215
- $ this ->headersSent = true ;
216
- return $ this ;
217
- }
218
190
}
You can’t perform that action at this time.
0 commit comments