Sophie

Sophie

distrib > Mageia > 4 > x86_64 > media > core-updates-src > by-pkgid > fc5acc888e697fde981f1f9a1d8de094 > files > 3

ruby-rack-ssl-1.3.3-3.1.mga4.src.rpm

--- ruby-rack-ssl-1.3.3/lib/rack/ssl.rb~	2014-04-02 19:55:52.453292794 +0000
+++ ruby-rack-ssl-1.3.3/lib/rack/ssl.rb	2014-04-02 20:01:41.201824043 +0000
@@ -55,6 +55,8 @@
                                         'Location'     => url.to_s)
 
         [status, headers, []]
+      rescue URI::InvalidURIError
+        [400, {"Content-Type" => "text/plain"}, []]
       end
 
       # http://tools.ietf.org/html/draft-hodges-strict-transport-sec-02