Skip to content
Snippets Groups Projects
Commit 3ec771d8 authored by lacoche's avatar lacoche
Browse files

Now 4 key values can be edited (todo: any number), fix issue request https with unitywebrequest

parent 5af22fd9
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,9 @@ namespace ETSI.ARF.WorldStorage.UI
// Keyvalues
//
[SerializeField] protected KeyvalueTagList keyValueTags = new KeyvalueTagList();
protected List<(string, string)> keyValuesFixed = new List<(string, string)>(3)
protected List<(string, string)> keyValuesFixed = new List<(string, string)>(4)
{
("", ""),("", ""),("", "")
("", ""),("", ""),("", ""),("", "")
};
protected void OutputKeyValue(int n)
{
......
......@@ -247,6 +247,7 @@ namespace ETSI.ARF.WorldStorage.UI
OutputKeyValue(0);
OutputKeyValue(1);
OutputKeyValue(2);
OutputKeyValue(3);
}
EditorGUILayout.EndToggleGroup();
//
......
......@@ -108,9 +108,8 @@ namespace ETSI.ARF.OpenAPI.WorldStorage
{
try
{
List<string> li = item.Value as List<string>;
if (item.Key == "token") webRequest.SetRequestHeader(item.Key, li[0].ToString()); // add it
if (item.Key == "sessionID") webRequest.SetRequestHeader(item.Key, li[0].ToString()); // add it
List<string> li = item.Value.ToList<string>();
webRequest.SetRequestHeader(item.Key, li[0]); // assume only one value
}
catch { } // ignore it
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment