httmock icon indicating copy to clipboard operation
httmock copied to clipboard

Response doesn't always receive request's URL

Open rodrigoccurvo opened this issue 8 years ago • 0 comments

When a mock function returns a string, the response's URL is not set with the request's. I'm not sure if this is on purpose, but it seems the request is not passed as a parameter here:

        elif isinstance(res, (text_type, binary_type)):
            return response(content=res, stream=kwargs.get('stream', False))

rodrigoccurvo avatar Nov 23 '16 20:11 rodrigoccurvo