Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
AMBARI-25117. getAsPost requests don't work when ambari is used behin…
…d knox proxy (amagyar) (#2775)
  • Loading branch information
zeroflag committed Jan 29, 2019
1 parent 845f777 commit 630fdd359a5ff16f6cbd2405f4befb4be97972b0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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);

0 comments on commit 630fdd3

Please sign in to comment.