Merge pull request #561 from Jimdo/fastcgi_param_ordering
Sort fastcgi params to have stable ordering
This commit is contained in:
commit
e84b55ed1b
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
<% end -%>
|
||||
<% if defined? @fastcgi_param -%>
|
||||
<%- field_width = @fastcgi_param.inject(0) { |l,(k,v)| k.size > l ? k.size : l } -%>
|
||||
<%- @fastcgi_param.each do |key, val| -%>
|
||||
<%- @fastcgi_param.sort_by {|k,v| k}.each do |key, val| -%>
|
||||
fastcgi_param <%= sprintf("%-*s", field_width, key) %> <%= val %>;
|
||||
<%- end -%>
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in a new issue