Open Ravencentric opened 1 week ago
My current workaround for this is loading the pickled response and recasting it:
with open("pickled_response", "rb") as file:
response: Response = pickle.load(file)
return Response(status_code=response.status_code, content=response.content)
Simple reproduction: