You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yield'protocol should stay the same 1' => [ 'https://test.example.com:8080/foo', 'https://test.example.com/foo', [ 'HTTP_X_FORWARDED_PORT' => 8080 ] ];
65
+
yield'protocol should stay the same 2' => [ 'http://test.example.com:8080/foo', 'http://test.example.com/foo', [ 'HTTP_X_FORWARDED_PORT' => 8080 ] ];
66
+
67
+
yield'protocol should change and new port should be respected' => [ 'https://test.example.com:8080/foo', 'http://test.example.com/foo', [ 'HTTP_X_FORWARDED_PORT' => 8080, 'HTTP_X_FORWARDED_PROTOCOL' => 'https' ] ];
68
+
69
+
yield'change in protocol should remove port' => [ 'https://test.example.com/foo', 'http://test.example.com/foo', [ 'HTTP_X_FORWARDED_PROTOCOL' => 'https' ] ];
70
+
71
+
yield'Default port should overwrite when not found' => [ 'https://test.example.com:9090/foo', 'http://test.example.com/foo', [ 'HTTP_X_FORWARDED_PROTOCOL' => 'https' ], true, 9090 ];
72
+
yield'Default port should not overwrite when detection disabled' => [ 'https://test.example.com:2020/foo', 'http://test.example.com:2020/foo', [ 'HTTP_X_FORWARDED_PORT' => 8080, 'HTTP_X_FORWARDED_PROTOCOL' => 'https' ], false ];
0 commit comments