if "json" == self.format:
res = json.loads(handle.read().decode('utf8'))
return wrap_response(res, handle.headers)
else:
return wrap_response(
handle.read().decode('utf8'), handle.headers)
if "json" == self.format:
res = json.loads(handle.read().decode('utf8'))
return wrap_response(res, handle.headers)
else:
return wrap_response(
handle.read().decode('utf8'), handle.headers)