fix: FC base_path

pull/128/head
qkqpttgf 2020-09-22 19:42:55 +08:00 committed by GitHub
parent b8095a38b0
commit 936764d7b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ function GetPathSetting($event, $context)
$_SERVER['service_name'] = $context['service']['name']; $_SERVER['service_name'] = $context['service']['name'];
$_SERVER['function_name'] = $context['function']['name']; $_SERVER['function_name'] = $context['function']['name'];
$_SERVER['base_path'] = '/'; $_SERVER['base_path'] = $event['requestURI'];
$path = $event['path']; $path = $event['path'];
//$path = spurlencode($path, '/'); //$path = spurlencode($path, '/');