[console] Make GET requests converted to POST case insensitive (#14327)

This commit is contained in:
Jonathan Budzenski 2017-11-07 14:21:09 -06:00 committed by Jonathan Budzenski
parent d2cc27b8da
commit 3005e97b94
No known key found for this signature in database
GPG key ID: D28BF9418FA0F292

View file

@ -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";
}