mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Merge pull request #1460 from rana01645/master
Update "fetch-share-url" to pull correct URL for HTTPS tunnels, not just HTTP
This commit is contained in:
@@ -47,10 +47,18 @@ public function test_it_matches_correct_share_tunnel()
|
||||
],
|
||||
'public_url' => 'http://right-one.ngrok.io/',
|
||||
],
|
||||
(object) [
|
||||
'proto' => 'https',
|
||||
'config' => (object) [
|
||||
'addr' => 'http://mysecuresite.test:80',
|
||||
],
|
||||
'public_url' => 'http://secure-right-one.ngrok.io/',
|
||||
],
|
||||
];
|
||||
|
||||
$ngrok = resolve(Ngrok::class);
|
||||
$this->assertEquals('http://right-one.ngrok.io/', $ngrok->findHttpTunnelUrl($tunnels, 'mysite'));
|
||||
$this->assertEquals('http://secure-right-one.ngrok.io/', $ngrok->findHttpTunnelUrl($tunnels, 'mysecuresite'));
|
||||
}
|
||||
|
||||
public function test_it_checks_against_lowercased_domain()
|
||||
|
||||
Reference in New Issue
Block a user