-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update mime.conf.erb to support dynamic AddHandler AddType AddOutputF… #1232
Conversation
04ce559
to
212eaab
Compare
Usage: mime_types_additional => {
"AddHandler" => {"type-map" => "var"},
"AddType" => {"type-map" => ".shtml"},
"AddOutputFilter" => {"INCLUDES" => ".shtml"},
} |
d3c5407
to
5e6d69a
Compare
@@ -487,6 +491,7 @@ | |||
$fastcgi_lib_path = '/var/lib/apache2/fastcgi' | |||
$mime_support_package = 'aaa_base' | |||
$mime_types_config = '/etc/mime.types' | |||
$mime_types_additional = {'AddHandler' => {'type-map' => 'var'}, 'AddType' => {'type-map' => '.shtml'},'AddOutputFilter' => {'INCLUDES' => '.shtml'},} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you putting this in every single branch, instead of just on top?
It's always the same, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahhh..yes correct...thanks for catching. fixed and pushed again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated with better hash formatting for readability.
f7af65a
to
b6675d6
Compare
yes correct...thanks for catching. fixed and pushed again. also updated with better hash formatting for readability. |
AddType text/html .shtml | ||
AddOutputFilter INCLUDES .shtml | ||
<%- @mime_types_additional.sort.each do |key, value_hash| -%> | ||
<%- value_hash.each do |value_hash_key, value_hash_value| %><%=key%> <%=value_hash_key%> <%=value_hash_value%><% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is terrible on the eyes… 👓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmmm...it shows 3 lines in actual file...its strange that the diff is showing it on one line?
do you mean to refactor the second line with extra indenting?
<%- @mime_types_additional.sort.each do |key, value_hash| -%>
<%- value_hash.each do |value_hash_key, value_hash_value| %><%=key%> <%=value_hash_key%> <%=value_hash_value%><% end %>
<% end %>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prabin5 is this some weird mis-match between different line-endings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b6675d6
to
393a7fd
Compare
AddHandler type-map var | ||
AddType text/html .shtml | ||
AddOutputFilter INCLUDES .shtml | ||
<%- @mime_types_additional.sort.each do |key, value_hash| -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
slightly better names: |add_mime, config|
@prabin5 thanks for updating, i hope my comments help |
393a7fd
to
cc3e55a
Compare
Update mime.conf.erb to support dynamic AddHandler AddType AddOutputF…
'Forge Modules'
Forge ModulesMODULES-2748
Update mime.conf.erb to support dynamic AddHandler AddType AddOutputFilter