chriso/klein.php — pull request #19 by berklee (2011-10-12 09:46:30+00:00)
Title: Here's the pull request for the MIME type.

Added a $mimetype definition to $response->file(). You can specify the MIME type of the file you're sending, overriding PHP's interpretation of the file (handy for JavaScript and CSS files). Simply call $response->file("/path/to/file", "filename", "mime/type"). I use this for JavaScript files: $response->file("script/file.js", null, "application/javascript").

========================

I took the liberty to rearrange the $filename check, but adhered to your coding style. Hope that's ok.

Thanks again,
Berklee