Skip to content

Commit

Permalink
Merge pull request #243 from huandu/master
Browse files Browse the repository at this point in the history
Sort @passenger_cgi_param to make sure generated config file content is stable.
  • Loading branch information
James Fryman committed Jan 24, 2014
2 parents d1dc560 + 542cbbe commit 9b357bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/vhost/vhost_header.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ server {
<% if @root -%>
root <%= @root %>;
<% end -%>
<% if @passenger_cgi_param -%><% @passenger_cgi_param.each do |key,value| -%>
passenger_set_cgi_param <%= key %> <%= value %>;
<% if @passenger_cgi_param -%><% @passenger_cgi_param.keys.sort.each do |key| -%>
passenger_set_cgi_param <%= key %> <%= @passenger_cgi_param[key] %>;
<% end -%><% end -%>
<% @proxy_set_header.each do |header| -%>
proxy_set_header <%= header %>;
Expand Down

0 comments on commit 9b357bc

Please sign in to comment.