Update index.php

This commit is contained in:
qkqpttgf 2020-03-04 17:21:15 +08:00 committed by GitHub
parent 5d9459feac
commit f28a1ccc69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ if ($_SERVER['USER']==='qcloud') {
header($headerName . ': ' . $headerVal, true);
}
http_response_code($re['statusCode']);
echo $re['body'];
if ($re['isBase64Encoded']) echo base64_decode($re['body']);
else echo $re['body'];
}
function main_handler($event, $context)