and then i put some bindings inside Rake::Sendfile and it never was getting called. I then set config.action_dispatch.x_sendfile_header = "X-Sendfile" in config/application.rb and it started getting hit. So this pr sets the header by default in a railtie so people dont have to set it.
But after setting this, rack sets the content length to 0 and the file never gets loaded. (im assuming thruster comes back through and does the download but doesnt seem to be). I've attached a screenshot of the network hoping that helps. Am I miss configuring something here to enable x-sendfile usage? I'll also note im doing this with the disk adapter of active storage if that matters.
Hey there!
Been messing around with some image stuff and found that out of the box x-sendfile wasnt being used. In a controller i have:
and then i put some bindings inside Rake::Sendfile and it never was getting called. I then set
config.action_dispatch.x_sendfile_header = "X-Sendfile"
in config/application.rb and it started getting hit. So this pr sets the header by default in a railtie so people dont have to set it.But after setting this, rack sets the content length to 0 and the file never gets loaded. (im assuming thruster comes back through and does the download but doesnt seem to be). I've attached a screenshot of the network hoping that helps. Am I miss configuring something here to enable x-sendfile usage? I'll also note im doing this with the disk adapter of active storage if that matters.
Thanks!