playframework/Play20 — pull request #203 by arnihermann (2012-03-25 14:45:29+00:00)
Title: [#276] onClose parameter for Ok.sendFile

Implemented onClose parameter for Ok.sendFile. The proposed addition
propagated into Enumerator.fromFile and Enumerator.fromStream which are
called when Ok.sendFile is called.

Added a small spec which checks if onClose was called by mutating a
boolean variable and asserting that it changed afterwards.