From bbda631e8abc4a7ec3e7c99480676dbe810842b4 Mon Sep 17 00:00:00 2001 From: Tim Simpson Date: Fri, 18 May 2012 14:58:54 -0500 Subject: [PATCH] Saving the last response. --- reddwarfclient/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reddwarfclient/client.py b/reddwarfclient/client.py index ec21b015..0d3a5100 100644 --- a/reddwarfclient/client.py +++ b/reddwarfclient/client.py @@ -133,6 +133,9 @@ class ReddwarfHTTPClient(HTTPClient): resp, body = super(HTTPClient, self).request(*args, **kwargs) + # Save this in case anyone wants it. + self.last_response = (resp, body) + self.http_log(args, kwargs, resp, body) if body: