Commit 3ec771d8 authored by Jérémy Lacoche's avatar Jérémy Lacoche
Browse files

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

parent 5af22fd9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)
        {
+1 −0
Original line number Diff line number Diff line
@@ -247,6 +247,7 @@ namespace ETSI.ARF.WorldStorage.UI
                OutputKeyValue(0);
                OutputKeyValue(1);
                OutputKeyValue(2);
                OutputKeyValue(3);
            }
            EditorGUILayout.EndToggleGroup();
            //
+2 −3
Original line number Diff line number Diff line
@@ -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
            }