summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/app/client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ryu/app/client.py b/ryu/app/client.py
index 1371a06e..bc1640f4 100644
--- a/ryu/app/client.py
+++ b/ryu/app/client.py
@@ -41,8 +41,9 @@ class OFPClientV1_0(object):
httplib.NO_CONTENT):
return res
- raise httplib.HTTPException('code %d reason %s' %
- (res.status, res.reason))
+ raise httplib.HTTPException(
+ res, 'code %d reason %s' % (res.status, res.reason),
+ res.getheaders(), res.read())
def get_networks(self):
res = self._do_request('GET', '')