mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[console] Make GET requests converted to POST case insensitive (#14327)
This commit is contained in:
parent
d2cc27b8da
commit
3005e97b94
1 changed files with 2 additions and 1 deletions
|
@ -12,7 +12,8 @@ module.exports.send = function (method, path, data) {
|
|||
var wrappedDfd = $.Deferred();
|
||||
|
||||
console.log("Calling " + path);
|
||||
if (data && method == "GET") {
|
||||
var isGetRequest = /^get$/i.test(method)
|
||||
if (data && isGetRequest) {
|
||||
method = "POST";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue