diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 16:16:34 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-07-12 16:16:34 +0200 |
commit | e905afb102569e93e2f6ece9a9ab515ac1fd4f04 (patch) | |
tree | 56c764f3a3fe3848ef2aa161d143f33cb2eaeb8e /plugins/common/RESTSupport.vala | |
parent | 71137cc5832110d91599d68790402cf196762ed3 (diff) | |
parent | cb774d1baf242adcc03a1df5eed6d100f7e3bd55 (diff) |
Merge branch 'release/debian/0.30.4-1'debian/0.30.4-1
Diffstat (limited to 'plugins/common/RESTSupport.vala')
-rw-r--r-- | plugins/common/RESTSupport.vala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala index 482fd2c..5cd3768 100644 --- a/plugins/common/RESTSupport.vala +++ b/plugins/common/RESTSupport.vala @@ -444,6 +444,18 @@ public class Transaction { public void add_argument(string name, string value) { arguments += new Argument(name, value); } + + public void set_argument(string name, string value) { + foreach (var arg in arguments) { + if (arg.key == name) { + arg.value = value; + + return; + } + } + + add_argument(name, value); + } public string? get_endpoint_url() { return (endpoint_url != null) ? endpoint_url : parent_session.get_endpoint_url(); |