File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ public function testStorage_Init()
4141 {
4242 $ o = new tls_icon ();
4343 $ this ->assertSame ([
44- 'fetch_headers ' => ' RECEIVED '
44+ 'fetch_headers ' => 'RECEIVED '
4545 ], $ o ->storage_init ([]));
4646 $ this ->assertSame ([
47- 'fetch_headers ' => ' RECEIVED '
47+ 'fetch_headers ' => 'RECEIVED '
4848 ], $ o ->storage_init (['fetch_headers ' => null ]));
4949 $ this ->assertSame ([
5050 'fetch_headers ' => 'foo bar RECEIVED '
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ function get_received_header_content($Received_Header)
4242 public function storage_init ($ p )
4343 {
4444 $ headers = isset ($ p ['fetch_headers ' ]) ? $ p ['fetch_headers ' ] : '' ;
45- $ p ['fetch_headers ' ] = trim ($ headers ) . ' ' . strtoupper ('Received ' );
45+ $ p ['fetch_headers ' ] = trim (trim ( $ headers ) . ' ' . strtoupper ('Received ' ) );
4646 return $ p ;
4747 }
4848
You can’t perform that action at this time.
0 commit comments