diff --git a/Model/Api.php b/Model/Api.php
index <HASH>..<HASH> 100644
--- a/Model/Api.php
+++ b/Model/Api.php
@@ -428,7 +428,7 @@ class Api
             'Accept: application/json'
         ];
 
-        if($method == \Zend_Http_Client::POST || $method == \Zend_Http_Client::PUT) {
+        if($method == \Zend_Http_Client::PUT) {
             array_push($headers, 'Content-Type: application/x-www-form-urlencoded');
         }
 
diff --git a/view/adminhtml/web/js/testconnection.js b/view/adminhtml/web/js/testconnection.js
index <HASH>..<HASH> 100644
--- a/view/adminhtml/web/js/testconnection.js
+++ b/view/adminhtml/web/js/testconnection.js
@@ -34,7 +34,7 @@ define([
                 }
             });
         });
-    }
+    };
 
     function resetAllMessages() {
         successBtnMsg.text();
Fixed snippet upload bug when uploading for the 1st time