From 50d9c111a64eec2695c546f5df0286fdb6380ccf Mon Sep 17 00:00:00 2001 From: Marcelo Manzan Date: Tue, 14 Nov 2017 17:33:59 -0200 Subject: [PATCH] php-s3 :: organizing env variables --- backend/php-s3/index.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/backend/php-s3/index.php b/backend/php-s3/index.php index 71877ca..1839320 100644 --- a/backend/php-s3/index.php +++ b/backend/php-s3/index.php @@ -1,7 +1,8 @@ putObject($bucket, $path.'/'.$keyword, $data, array('Content-Type' => 'text/xml')); - header("HTTP/1.0 201 Created"); + $client->putObject($bucket, $path.'/'.$keyword, $data, array('Content-Type' => 'text/xml')); + header("HTTP/1.0 201 Created"); break; case "load": - $keyword = (isset($_GET["keyword"]) ? $_GET["keyword"] : ""); + $keyword = (isset($_GET["keyword"]) ? $_GET["keyword"] : ""); $file = $client->getObject($bucket, $path.'/'.$keyword); if ($file->body) { header("Content-type: text/xml");