Skip to content

Commit

Permalink
Merge pull request #25 from honkster/master
Browse files Browse the repository at this point in the history
Removing warning
  • Loading branch information
thibaudgg committed May 23, 2011
2 parents 579a600 + 9410743 commit 4d7c449
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/ssl-enforcer.rb
Original file line number Diff line number Diff line change
@@ -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 4d7c449

Please sign in to comment.