Parameters must be passed along to configs servlet. Connection URLs need not contain authentication parameters, as they will already have been passed to the configs servlet. Forward parameters along to login servlet if available.
This commit is contained in:
1 parent
00bbfe71f3
commit
6bcb4aa2d5
2 files changed
+19
-12
No files matched your search
@@ -5,11 +5,15 @@ function Config(protocol, id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
function getConfigList() {
|
||||
function getConfigList(parameters) {
|
||||
|
||||
// Construct request URL
|
||||
var configs_url = "configs";
|
||||
if (parameters) configs_url += "?" + parameters;
|
||||
|
||||
// Get config list
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", "configs", false);
|
||||
xhr.open("GET", configs_url, false);
|
||||
xhr.send(null);
|
||||
|
||||
// If fail, throw error
|
||||
|
||||
Reference in new issue
Block a user