@@ -749,15 +749,15 @@ public function testSendContinuedWithManyHeaders()
749749 $ this ->assertSame ('<title>Update success! config</title> ' , $ response ->getBody ());
750750
751751 $ responseHeaderKeys = [
752- 'Cache-Control ' ,
753- 'Content-Type ' ,
754752 'Server ' ,
755753 'Connection ' ,
756754 'Keep-Alive ' ,
757755 'Set-Cookie ' ,
758756 'Date ' ,
759757 'Expires ' ,
758+ 'Cache-Control ' ,
760759 'Pragma ' ,
760+ 'Content-Type ' ,
761761 'Transfer-Encoding ' ,
762762 ];
763763 $ this ->assertSame ($ responseHeaderKeys , array_keys ($ response ->headers ()));
@@ -780,19 +780,19 @@ public function testResponseHeadersWithMultipleRequests()
780780Cache-Control: no-store, no-cache, must-revalidate
781781Pragma: no-cache
782782Content-Type: application/xml; charset=utf-8
783- Transfer-Encoding: chunked \x0d\x0a\x0d\x0a<title>Hello </title> " ;
783+ Transfer-Encoding: chunked \x0d\x0a\x0d\x0a<title>Hello1 </title> " ;
784784 $ request ->setOutput ($ output );
785785
786- $ response = $ request ->get ('answer ' );
786+ $ response = $ request ->get ('answer1 ' );
787787
788- $ this ->assertSame ('<title>Hello </title> ' , $ response ->getBody ());
788+ $ this ->assertSame ('<title>Hello1 </title> ' , $ response ->getBody ());
789789
790790 $ responseHeaderKeys = [
791- 'Cache-Control ' ,
792- 'Content-Type ' ,
793791 'Server ' ,
794792 'Expires ' ,
793+ 'Cache-Control ' ,
795794 'Pragma ' ,
795+ 'Content-Type ' ,
796796 'Transfer-Encoding ' ,
797797 ];
798798 $ this ->assertSame ($ responseHeaderKeys , array_keys ($ response ->headers ()));
@@ -803,19 +803,17 @@ public function testResponseHeadersWithMultipleRequests()
803803Server: ddos-guard
804804Expires: Thu, 19 Nov 1982 08:52:00 GMT
805805Content-Type: application/xml; charset=utf-8
806- Transfer-Encoding: chunked \x0d\x0a\x0d\x0a<title>Hello </title> " ;
806+ Transfer-Encoding: chunked \x0d\x0a\x0d\x0a<title>Hello2 </title> " ;
807807 $ request ->setOutput ($ output );
808808
809- $ response = $ request ->get ('answer ' );
809+ $ response = $ request ->get ('answer2 ' );
810810
811- $ this ->assertSame ('<title>Hello </title> ' , $ response ->getBody ());
811+ $ this ->assertSame ('<title>Hello2 </title> ' , $ response ->getBody ());
812812
813813 $ responseHeaderKeys = [
814- 'Cache-Control ' ,
815- 'Content-Type ' ,
816814 'Server ' ,
817815 'Expires ' ,
818- 'Pragma ' ,
816+ 'Content-Type ' ,
819817 'Transfer-Encoding ' ,
820818 ];
821819 $ this ->assertSame ($ responseHeaderKeys , array_keys ($ response ->headers ()));
0 commit comments