This is an automated email from the ASF dual-hosted git repository.
amagyar pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new 8734de9 AMBARI-25117. getAsPost requests don't work when ambari is
used behind knox proxy (amagyar) (#2775) (#2799)
8734de9 is described below
commit 8734de995cd88b20f78fbfb7c05eb569938fadec
Author: Attila Magyar <[email protected]>
AuthorDate: Thu Jan 31 11:29:40 2019 +0100
AMBARI-25117. getAsPost requests don't work when ambari is used behind knox
proxy (amagyar) (#2775) (#2799)
---
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);