Rails send_file not working with litespeed
I've setup litespeed on os X 10.5 and on Solaris 10 (Joyent) and i'm finding that my code that worked find for apache and nginx does not work for litespeed and I'd like to know if there's a workaround.
We do a lot of on-the-fly image creation and we typically create the image in a tempfile and then send that to the webserver that caches it for retrieval later.
tempfile.new do |tfile|
path = tfile.path
#create image in path
send_file path, :type => 'image/png', :disposition => 'inline'
# the tempfile is unlinked at the close of the block above
As I said, this works fine with nginx+mongrel or apache+mongrel, but not under litespeed+lsapi
Thanks for your help.