diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2019-04-28 16:45:36 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2019-04-28 16:45:36 +0200 |
commit | 6710aa856175300e598b23b701c0d2741f2cb6b3 (patch) | |
tree | 43987fa58a25c81413e68cddad697e6301c5936f /plugins/common/RESTSupport.vala | |
parent | 5e9f4eea451a77ba3b93db3747841ed2bd969e9f (diff) |
New upstream version 0.30.4upstream/0.30.4
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(); |