This is an automated email from the ASF dual-hosted git repository.

amagyar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 630fdd3  AMBARI-25117. getAsPost requests don't work when ambari is 
used behind knox proxy (amagyar) (#2775)
630fdd3 is described below

commit 630fdd359a5ff16f6cbd2405f4befb4be97972b0
Author: Attila Magyar <m.magy...@gmail.com>
AuthorDate: Tue Jan 29 10:42:21 2019 +0100

    AMBARI-25117. getAsPost requests don't work when ambari is used behind knox 
proxy (amagyar) (#2775)
---
 ambari-web/app/utils/http_client.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ambari-web/app/utils/http_client.js 
b/ambari-web/app/utils/http_client.js
index 0113679..7b7f21d 100644
--- a/ambari-web/app/utils/http_client.js
+++ b/ambari-web/app/utils/http_client.js
@@ -68,7 +68,7 @@ App.HttpClient = Em.Object.create({
     xhr.open(method, url + (url.indexOf('?') >= 0 ? '&_=' : '?_=') + curTime, 
true);
     if (isGetAsPost) {
       xhr.setRequestHeader("X-Http-Method-Override", "GET");
-      xhr.setRequestHeader("Content-type", 
"application/x-www-form-urlencoded");
+      xhr.setRequestHeader("Content-type", "text/plain");
     }
     xhr.send(params);
 

Reply via email to