From 61f645627a5530dab7fe1a892b6f6de63e6574b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=85=E6=A1=89?= Date: Thu, 27 Feb 2020 18:32:34 +0800 Subject: [PATCH] Update scf.php --- function/scf.php | 1 - 1 file changed, 1 deletion(-) diff --git a/function/scf.php b/function/scf.php index cc6ba07..75e6dc2 100644 --- a/function/scf.php +++ b/function/scf.php @@ -33,7 +33,6 @@ function GetPathSetting($event, $context) $host_name = $event['headers']['host']; $_SERVER['HTTP_HOST'] = $host_name; $serviceId = $event['requestContext']['serviceId']; - $Region = $event['requestContext']['Region']; if ( $serviceId === substr($host_name,0,strlen($serviceId)) ) { $_SERVER['base_path'] = '/'.$event['requestContext']['stage'].'/'.$_SERVER['function_name'].'/'; $path = substr($event['path'], strlen('/'.$_SERVER['function_name'].'/'));