[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 ee5eb88181
commit 1f212d7691
No known key found for this signature in database
GPG key ID: D28BF9418FA0F292

View file

@ -16,7 +16,8 @@ export function send(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";
}