Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored send_file for better readability and maintainability.
Biggest change is moving all range and size parsing outside send_file into a new function prepare_send_file/5. This translates in a new send_file/5 whose signature and semantics are comparable to Elli's send_response.
- Loading branch information
Vincent Siliakus
committed
Nov 9, 2012
1 parent
0fd2203
commit 5983403
Showing
2 changed files
with
53 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters