From 7436fd248e440829f606d460336c282c3c84311d Mon Sep 17 00:00:00 2001 From: Roland Moriz Date: Fri, 13 Mar 2015 11:39:43 +0100 Subject: [PATCH] disable remove_http_protocol by default --- README.md | 2 +- lib/htmlcompressor/rack.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9f933f7..94c6da6 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ The middleware uses a little more aggressive options by default: :remove_form_attributes => false, :remove_input_attributes => true, :remove_javascript_protocol => true, - :remove_http_protocol => true, + :remove_http_protocol => false, :remove_https_protocol => false, :preserve_line_breaks => false, :simple_boolean_attributes => true diff --git a/lib/htmlcompressor/rack.rb b/lib/htmlcompressor/rack.rb index f72474b..706ae84 100644 --- a/lib/htmlcompressor/rack.rb +++ b/lib/htmlcompressor/rack.rb @@ -17,7 +17,7 @@ class Rack :remove_form_attributes => false, :remove_input_attributes => true, :remove_javascript_protocol => true, - :remove_http_protocol => true, + :remove_http_protocol => false, :remove_https_protocol => false, :preserve_line_breaks => false, :simple_boolean_attributes => true