From 0d53d260daa085195f5f990437c251f7f40d0f07 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sat, 5 Oct 2019 18:42:46 +0530 Subject: [PATCH] feat: lint fix --- app/controllers/auth.php | 2 +- src/Auth/OAuth/Amazon.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/auth.php b/app/controllers/auth.php index 22c4aaaca..a904c1abd 100644 --- a/app/controllers/auth.php +++ b/app/controllers/auth.php @@ -731,7 +731,7 @@ $utopia->get('/v1/auth/oauth/:provider/redirect') $validateURL = new URL(); // Uncomment this while testing amazon oAuth - $state = html_entity_decode($state); + // $state = html_entity_decode($state); if (!empty($state)) { try { diff --git a/src/Auth/OAuth/Amazon.php b/src/Auth/OAuth/Amazon.php index d280b0276..0b52f681f 100644 --- a/src/Auth/OAuth/Amazon.php +++ b/src/Auth/OAuth/Amazon.php @@ -42,7 +42,6 @@ class Amazon extends OAuth */ public function getAccessToken(string $code): string { - $headers[] = 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8'; $accessToken = $this->request( 'POST',