Pass the control to the next middleware in stack only if the read and write stream are finished
Merge pull request #45 from maxcnunes/wait-write-stream-finish

Fixed problem when uploading small files