File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public function exceptionHandler($exception)
105105 if (! is_cli ())
106106 {
107107 $ this ->response ->setStatusCode ($ statusCode );
108- $ header = "HTTP/ {$ this ->request ->getProtocolVersion ()} {$ this ->response ->getStatusCode ()} {$ this ->response ->getReason ()}" ;
108+ $ header = "HTTP/ {$ this ->request ->getProtocolVersion ()} {$ this ->response ->getStatusCode ()} {$ this ->response ->getReasonPhrase ()}" ;
109109 header ($ header , true , $ statusCode );
110110 if (strpos ($ this ->rRequest ->getHeaderLine ('accept ' ), 'text/html ' ) === false )
111111 {
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ public function __construct(
2828 }
2929
3030 private function getCi4ContentType (\CodeIgniter \HTTP \Response $ ci4Response ) : string {
31- $ ci4headers = $ ci4Response ->getHeaders ();
32- return $ ci4headers ['Content-Type ' ]->getValueLine ();
31+ return $ ci4Response ->getHeaderLine ("Content-Type " );
3332 }
3433
3534 private function getCi4Headers (\CodeIgniter \HTTP \Response $ ci4Response ) : array {
@@ -54,7 +53,7 @@ private function getCi4Headers(\CodeIgniter\HTTP\Response $ci4Response) : array{
5453 session_write_close ();
5554 session_id (null );
5655 }
57- $ ci4headers = $ ci4Response ->getHeaders ();
56+ $ ci4headers = $ ci4Response ->headers ();
5857 $ headers = [];
5958 foreach ($ ci4headers as $ key => $ value ){
6059 if ($ key == "Content-Type " ) continue ;
Original file line number Diff line number Diff line change 44 command : " php psr-worker.php"
55 pool :
66 numWorkers : 1
7- # maxJobs: 500
7+ # maxJobs: 50
88
99static :
1010 enable : true
You can’t perform that action at this time.
0 commit comments