Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Avoid re-opening files when serving from a directory #42
This patch fixes the issue by skipping the prepare phase once the response has been submitted. I have added an additional test to verify this behavior.
This issue is mostly a performance problem, though it can in extreme cases cause incorrect behavior if the file is moved / deleted between the two calls to the