From 542cbbef2cad453c0ca7fc60453b3f11fbddcece Mon Sep 17 00:00:00 2001 From: Huan Du Date: Fri, 24 Jan 2014 20:25:12 +0800 Subject: [PATCH] use stable sort to ensure passenger_set_cgi_param key sequence stable. --- templates/vhost/vhost_header.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/vhost/vhost_header.erb b/templates/vhost/vhost_header.erb index d0d7382b7..3bc488b96 100644 --- a/templates/vhost/vhost_header.erb +++ b/templates/vhost/vhost_header.erb @@ -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 %>;