Flask send stream as response
问题 I'm trying to "proxy" my Flask server (i will call it Server#01) with another server(Server#02). It's working well except for one thing : when the Server#01 use send_from_directory(), i don't know how to re-send this file. My classic "proxy" result = requests.get(my_path_to_server01) return Response(stream_with_context(result.iter_content()), content_type = result.headers['Content-Type']) With a file a response, it's taking hours... So i tried many things. The one who work is : result =