From 891bccf89227f40ecfa30ac0ea5960a38361c8a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= <michal@cihar.com>
Date: Wed, 30 Dec 2020 09:18:57 +0100
Subject: [PATCH] Fix assigning tags to tickets

---
 rt2zammad.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/rt2zammad.py b/rt2zammad.py
index 49d3be9..779d3b0 100755
--- a/rt2zammad.py
+++ b/rt2zammad.py
@@ -19,8 +19,9 @@ class Tag(Resource):
     path_attribute = "tags"
 
     def add(self, obj, id, item):
-        response = self._connection.session.get(
-            self.url + "/add?object=%s&o_id=%d&item=%s" % (obj, id, item)
+        response = self._connection.session.post(
+            self.url + "/add",
+            data={"object": obj, "id": id, "item": item}
         )
         return self._raise_or_return_json(response)