Skip to content

Commit

Permalink
use stable sort to ensure passenger_set_cgi_param key sequence stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
huandu committed Jan 24, 2014
1 parent d1dc560 commit 542cbbe
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 542cbbe

Please sign in to comment.