Merge "Small Fix for FakeServerConnection"

This commit is contained in:
Jenkins 2014-09-05 03:13:04 +00:00 committed by Gerrit Code Review
commit f35cd631e3

View File

@ -51,6 +51,7 @@ class FakeServerConnection(WSGIContext):
environ = {'REQUEST_METHOD': self.method}
req = Request.blank(self.path, environ, headers=self.req_headers,
body=self.data)
self.data = ''
self.resp = self._app_call(req.environ)
self.resp_iter = iter(self.resp)
if self._response_headers is None:
@ -66,7 +67,7 @@ class FakeServerConnection(WSGIContext):
return ContinueResponse()
def send(self, data):
self.data = data
self.data += data
def __call__(self, ipaddr, port, device, partition, method, path,
headers=None, query_string=None):