Skip to content

Commit

Permalink
Merge pull request #168 from HadasBenMordechai/master
Browse files Browse the repository at this point in the history
Fix 404 error when sharing upper case folder
  • Loading branch information
cretueusebiu authored Apr 25, 2021
2 parents 26f03e3 + d5e6028 commit f6fe82d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/valet.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
// TODO: custom domain and ngrok params
$app->command('share [domain] [--authtoken=] [--host-header=] [--hostname=] [--region=] [--subdomain=]',
function ($domain = null, $authtoken = null, $hostheader = null, $hostname = null, $region = null, $subdomain = null) {
$url = ($domain ?: Site::host(getcwd())).'.'.Configuration::read()['tld'];
$url = ($domain ?: strtolower(Site::host(getcwd()))).'.'.Configuration::read()['tld'];

Ngrok::start($url, Site::port($url), array_filter([
'authtoken' => $authtoken,
Expand Down

0 comments on commit f6fe82d

Please sign in to comment.