From abd98cc468da8d488146a16372a6a1b58905892f Mon Sep 17 00:00:00 2001 From: garciaana Date: Mon, 20 Feb 2017 14:42:18 +0100 Subject: [PATCH] get_of_rules corrected Change-Id: I4b3d6d2f035765f595b797320d8f42d7dddac09f Signed-off-by: garciaana --- onos.py | 1 + 1 file changed, 1 insertion(+) diff --git a/onos.py b/onos.py index 53def9d..86fbac7 100644 --- a/onos.py +++ b/onos.py @@ -212,6 +212,7 @@ class OF_conn(): return r, c # get rules try: + self.headers['content-type'] = 'text/plain' of_response = requests.get(self.url + "flows/" + self.id, headers=self.headers) error_text = "Openflow response %d: %s" % (of_response.status_code, of_response.text) -- 2.25.1