rack-canonical-host icon indicating copy to clipboard operation
rack-canonical-host copied to clipboard

Rack middleware for defining a canonical host name.

Results 2 rack-canonical-host issues
Sort by recently updated
recently updated
newest added

I'm wondering if anybody has experience getting this to work with wss? It seems like I am getting 301 errors.... **config.ru:** ```ruby use Rack::CanonicalHost, ENV['CANONICAL_HOST'] if ENV['CANONICAL_HOST'] ``` **ENV var:**...

Currently, the host block is evaluated even if the return value isn't used, e.g., when the `if` condition returns false. I think this behavior is surprising. I spent a significant...