Skip to content

Commit

Permalink
Removed the annoying warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Willett & Scott Gonyea committed May 20, 2011
1 parent 579a600 commit 9410743
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/ssl-enforcer.rb
@@ -1,6 +1,8 @@
module Rack
class SslEnforcer

# Warning: If you set the option force_secure_cookies to false, make sure that your cookies
# are encoded and that you understand the consequences (see documentation)
def initialize(app, options={})
default_options = {
:redirect_to => nil,
Expand All @@ -16,7 +18,6 @@ def initialize(app, options={})
:force_secure_cookies => true
}
@app, @options = app, default_options.merge(options)
$stderr.puts "WARN -- : The option :force_secure_cookies is set to false so make sure your cookies are encoded and that you understand the consequences (see documentation)" if options[:force_secure_cookies]==false
end

def call(env)
Expand Down

0 comments on commit 9410743

Please sign in to comment.