Skip to content

Commit

Permalink
set ENV["RACK_ENV"] to options[:environment] as many frameworks rely …
Browse files Browse the repository at this point in the history
…on this
  • Loading branch information
Timur Batyrshin authored and manveru committed Jun 8, 2010
1 parent 79c7ccf commit b433e48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rack/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def parse_options(args)
args.clear if ENV.include?("REQUEST_METHOD")

options.merge! opt_parser.parse! args
ENV["RACK_ENV"] = options[:environment]
options
end

Expand Down

0 comments on commit b433e48

Please sign in to comment.