%PDF- %PDF-
Direktori : /opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.10/rdoc/ |
Current File : //opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.10/rdoc/CHANGELOG_md.html |
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>CHANGELOG - rack-2.2.10 Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "./"; var index_rel_prefix = "./"; </script> <script src="./js/navigation.js" defer></script> <script src="./js/search.js" defer></script> <script src="./js/search_index.js" defer></script> <script src="./js/searcher.js" defer></script> <script src="./js/darkfish.js" defer></script> <link href="./css/fonts.css" rel="stylesheet"> <link href="./css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="file"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="./index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="./table_of_contents.html#pages">Pages</a> <a href="./table_of_contents.html#classes">Classes</a> <a href="./table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="search-field-wrapper"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div class="nav-section"> <h3>Table of Contents</h3> <ul class="link-list" role="directory"> <li><a href="#label-Changelog">Changelog</a> <li><a href="#label-Unreleased">Unreleased</a> <li><a href="#label-5B2.2.10-5D+-+2024-10-14">[2.2.10] - 2024-10-14</a> <li><a href="#label-5B2.2.9-5D+-+2023-03-21">[2.2.9] - 2023-03-21</a> <li><a href="#label-5B2.2.8-5D+-+2023-07-31">[2.2.8] - 2023-07-31</a> <li><a href="#label-5B2.2.7-5D+-+2023-03-13">[2.2.7] - 2023-03-13</a> <li><a href="#label-5B2.2.6.4-5D+-+2023-03-13">[2.2.6.4] - 2023-03-13</a> <li><a href="#label-5B2.2.6.3-5D+-+2023-03-02">[2.2.6.3] - 2023-03-02</a> <li><a href="#label-5B2.2.6.2-5D+-+2023-01-17">[2.2.6.2] - 2023-01-17</a> <li><a href="#label-5B2.2.6.1-5D+-+2023-01-17">[2.2.6.1] - 2023-01-17</a> <li><a href="#label-5B2.2.6-5D+-+2023-01-17">[2.2.6] - 2023-01-17</a> <li><a href="#label-5B2.2.5-5D+-+2022-12-27">[2.2.5] - 2022-12-27</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.2.4-5D+-+2022-06-30">[2.2.4] - 2022-06-30</a> <li><a href="#label-5B2.2.3.1-5D+-+2022-05-27">[2.2.3.1] - 2022-05-27</a> <li><a href="#label-Security">Security</a> <li><a href="#label-5B2.2.3-5D+-+2020-02-11">[2.2.3] - 2020-02-11</a> <li><a href="#label-Security">Security</a> <li><a href="#label-5B2.2.2-5D+-+2020-02-11">[2.2.2] - 2020-02-11</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.2.1-5D+-+2020-02-09">[2.2.1] - 2020-02-09</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.2.0-5D+-+2020-02-08">[2.2.0] - 2020-02-08</a> <li><a href="#label-SPEC+Changes">SPEC Changes</a> <li><a href="#label-Added">Added</a> <li><a href="#label-Changed">Changed</a> <li><a href="#label-Removed">Removed</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-Documentation">Documentation</a> <li><a href="#label-5B2.1.2-5D+-+2020-01-27">[2.1.2] - 2020-01-27</a> <li><a href="#label-5B2.1.1-5D+-+2020-01-12">[2.1.1] - 2020-01-12</a> <li><a href="#label-5B2.1.0-5D+-+2020-01-10">[2.1.0] - 2020-01-10</a> <li><a href="#label-Added">Added</a> <li><a href="#label-Changed">Changed</a> <li><a href="#label-Removed">Removed</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-Documentation">Documentation</a> <li><a href="#label-5B2.0.8-5D+-+2019-12-08">[2.0.8] - 2019-12-08</a> <li><a href="#label-Security">Security</a> <li><a href="#label-5B1.6.12-5D+-+2019-12-08">[1.6.12] - 2019-12-08</a> <li><a href="#label-Security">Security</a> <li><a href="#label-5B2.0.7-5D+-+2019-04-02">[2.0.7] - 2019-04-02</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.0.6-5D+-+2018-11-05">[2.0.6] - 2018-11-05</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.0.5-5D+-+2018-04-23">[2.0.5] - 2018-04-23</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.0.4-5D+-+2018-01-31">[2.0.4] - 2018-01-31</a> <li><a href="#label-Changed">Changed</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-Documentation">Documentation</a> <li><a href="#label-5B2.0.3-5D+-+2017-05-15">[2.0.3] - 2017-05-15</a> <li><a href="#label-Changed">Changed</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-5B2.0.2-5D+-+2017-05-08">[2.0.2] - 2017-05-08</a> <li><a href="#label-Added">Added</a> <li><a href="#label-Changed">Changed</a> <li><a href="#label-Fixed">Fixed</a> <li><a href="#label-Removed">Removed</a> <li><a href="#label-Documentation">Documentation</a> <li><a href="#label-5B2.0.1-5D+-+2016-06-30">[2.0.1] - 2016-06-30</a> <li><a href="#label-Changed">Changed</a> <li><a href="#label-History-2FNews+Archive">History/News Archive</a> <li><a href="#label-5B2.0.0.rc1-5D+2016-05-06">[2.0.0.rc1] 2016-05-06</a> <li><a href="#label-5B2.0.0.alpha-5D+2015-12-04">[2.0.0.alpha] 2015-12-04</a> <li><a href="#label-5B1.6.1-5D+2015-05-06">[1.6.1] 2015-05-06</a> <li><a href="#label-5B1.5.3-5D+2015-05-06">[1.5.3] 2015-05-06</a> <li><a href="#label-5B1.6.0-5D+2014-01-18">[1.6.0] 2014-01-18</a> <li><a href="#label-5B1.5.2-5D+2013-02-07">[1.5.2] 2013-02-07</a> <li><a href="#label-5B1.4.5-5D+2013-02-07">[1.4.5] 2013-02-07</a> <li><a href="#label-5B1.1.6-2C+1.2.8-2C+1.3.10-5D+2013-02-07">[1.1.6, 1.2.8, 1.3.10] 2013-02-07</a> <li><a href="#label-5B1.5.1-5D+2013-01-28">[1.5.1] 2013-01-28</a> <li><a href="#label-5B1.5.0-5D+2013-01-21">[1.5.0] 2013-01-21</a> <li><a href="#label-5B1.4.4-2C+1.3.9-2C+1.2.7-2C+1.1.5-5D+2013-01-13">[1.4.4, 1.3.9, 1.2.7, 1.1.5] 2013-01-13</a> <li><a href="#label-5B1.4.3-5D+2013-01-07">[1.4.3] 2013-01-07</a> <li><a href="#label-5B1.3.8-5D+2013-01-07">[1.3.8] 2013-01-07</a> <li><a href="#label-5B1.4.2-5D+2013-01-06">[1.4.2] 2013-01-06</a> <li><a href="#label-5B1.3.7-5D+2013-01-06">[1.3.7] 2013-01-06</a> <li><a href="#label-5B1.2.6-5D+2013-01-06">[1.2.6] 2013-01-06</a> <li><a href="#label-5B1.1.4-5D+2013-01-06">[1.1.4] 2013-01-06</a> <li><a href="#label-5B1.4.1-5D+2012-01-22">[1.4.1] 2012-01-22</a> <li><a href="#label-5B1.4.0-5D+2011-12-28">[1.4.0] 2011-12-28</a> <li><a href="#label-5B1.1.3-5D+2011-12-28">[1.1.3] 2011-12-28</a> <li><a href="#label-5B1.3.5-5D+2011-10-17">[1.3.5] 2011-10-17</a> <li><a href="#label-5B1.3.4-5D+2011-10-01">[1.3.4] 2011-10-01</a> <li><a href="#label-5B1.2.4-5D+2011-09-16">[1.2.4] 2011-09-16</a> <li><a href="#label-5B1.3.3-5D+2011-09-16">[1.3.3] 2011-09-16</a> <li><a href="#label-5B1.3.2-5D+2011-07-16">[1.3.2] 2011-07-16</a> <li><a href="#label-5B1.3.1-5D+2011-07-13">[1.3.1] 2011-07-13</a> <li><a href="#label-5B1.2.3-5D+2011-05-22">[1.2.3] 2011-05-22</a> <li><a href="#label-5B1.3.0-5D+2011-05-22">[1.3.0] 2011-05-22</a> <li><a href="#label-5B1.2.2-2C+1.1.2-5D+2011-03-13">[1.2.2, 1.1.2] 2011-03-13</a> <li><a href="#label-5B1.2.1-5D+2010-06-15">[1.2.1] 2010-06-15</a> <li><a href="#label-5B1.2.0-5D+2010-06-13">[1.2.0] 2010-06-13</a> <li><a href="#label-5B1.1.0-5D+2010-01-03">[1.1.0] 2010-01-03</a> <li><a href="#label-5B1.0.1-5D+2009-10-18">[1.0.1] 2009-10-18</a> <li><a href="#label-5B1.0.0-5D+2009-04-25">[1.0.0] 2009-04-25</a> <li><a href="#label-5B0.9.1-5D+2009-01-09">[0.9.1] 2009-01-09</a> <li><a href="#label-5B0.9-5D+2009-01-06">[0.9] 2009-01-06</a> <li><a href="#label-5B0.4-5D+2008-08-21">[0.4] 2008-08-21</a> <li><a href="#label-5B0.3-5D+2008-02-26">[0.3] 2008-02-26</a> <li><a href="#label-5B0.2-5D+2007-05-16">[0.2] 2007-05-16</a> <li><a href="#label-5B0.1-5D+2007-03-03">[0.1] 2007-03-03</a> </ul> </div> <div id="project-metadata"> <div id="fileindex-section" class="nav-section"> <h3>Pages</h3> <ul class="link-list"> <li><a href="./CHANGELOG_md.html">CHANGELOG</a> <li><a href="./CONTRIBUTING_md.html">CONTRIBUTING</a> <li><a href="./README_rdoc.html">README</a> </ul> </div> </div> </nav> <main role="main" aria-label="Page CHANGELOG.md"> <h1 id="label-Changelog">Changelog<span><a href="#label-Changelog">¶</a> <a href="#top">↑</a></span></h1> <p>All notable changes to this project will be documented in this file. For info on how to format all future additions to this file please reference <a href="https://keepachangelog.com/en/1.0.0/">Keep A Changelog</a>.</p> <h2 id="label-Unreleased">Unreleased<span><a href="#label-Unreleased">¶</a> <a href="#top">↑</a></span></h2> <h2 id="label-5B2.2.10-5D+-+2024-10-14">[2.2.10] - 2024-10-14<span><a href="#label-5B2.2.10-5D+-+2024-10-14">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix compatibility issues with Ruby v3.4.0. (<a href="https://github.com/rack/rack/pull/2248">#2248</a>, <a href="https://github.com/byroot">@byroot</a>)</p> </li></ul> <h2 id="label-5B2.2.9-5D+-+2023-03-21">[2.2.9] - 2023-03-21<span><a href="#label-5B2.2.9-5D+-+2023-03-21">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Return empty when parsing a multi-part POST with only one end delimiter. (<a href="https://github.com/rack/rack/pull/2104">#2104</a>, [@alpaca-tc])</p> </li></ul> <h2 id="label-5B2.2.8-5D+-+2023-07-31">[2.2.8] - 2023-07-31<span><a href="#label-5B2.2.8-5D+-+2023-07-31">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Regenerate SPEC (<a href="https://github.com/rack/rack/pull/2102">#2102</a>, <a href="https://github.com/skipkayhil">@skipkayhil</a>)</p> </li><li> <p>Limit file extension length of multipart tempfiles (<a href="https://github.com/rack/rack/pull/2015">#2015</a>, <a href="https://github.com/dentarg">@dentarg</a>)</p> </li><li> <p>Fix “undefined method DelegateClass for Rack::Session::Cookie:Class” (<a href="https://github.com/rack/rack/pull/2092">#2092</a>, <a href="https://github.com/onigra">@onigra</a> <a href="https://github.com/dchandekstark">@dchandekstark</a>)</p> </li></ul> <h2 id="label-5B2.2.7-5D+-+2023-03-13">[2.2.7] - 2023-03-13<span><a href="#label-5B2.2.7-5D+-+2023-03-13">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Correct the year number in the changelog (<a href="https://github.com/rack/rack/pull/2015">#2015</a>, <a href="https://github.com/kimulab">@kimulab</a>)</p> </li><li> <p>Support underscore in host names for <a href="Rack.html"><code>Rack</code></a> 2.2 (Fixes <a href="https://github.com/rack/rack/issues/2070">#2070</a>) (<a href="https://github.com/rack/rack/pull/2071">#2015</a>, <a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li></ul> <h2 id="label-5B2.2.6.4-5D+-+2023-03-13">[2.2.6.4] - 2023-03-13<span><a href="#label-5B2.2.6.4-5D+-+2023-03-13">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>[CVE-2023-27539] Avoid ReDoS in header parsing</p> </li></ul> <h2 id="label-5B2.2.6.3-5D+-+2023-03-02">[2.2.6.3] - 2023-03-02<span><a href="#label-5B2.2.6.3-5D+-+2023-03-02">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>[CVE-2023-27530] Introduce multipart_total_part_limit to limit total parts</p> </li></ul> <h2 id="label-5B2.2.6.2-5D+-+2023-01-17">[2.2.6.2] - 2023-01-17<span><a href="#label-5B2.2.6.2-5D+-+2023-01-17">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>[CVE-2022-44570] Fix ReDoS in <a href="Rack/Utils.html#method-i-get_byte_ranges"><code>Rack::Utils.get_byte_ranges</code></a></p> </li></ul> <h2 id="label-5B2.2.6.1-5D+-+2023-01-17">[2.2.6.1] - 2023-01-17<span><a href="#label-5B2.2.6.1-5D+-+2023-01-17">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>[CVE-2022-44571] Fix ReDoS vulnerability in multipart parser</p> </li><li> <p>[CVE-2022-44572] Forbid control characters in attributes (also ReDoS)</p> </li></ul> <h2 id="label-5B2.2.6-5D+-+2023-01-17">[2.2.6] - 2023-01-17<span><a href="#label-5B2.2.6-5D+-+2023-01-17">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Extend <code>Rack::MethodOverride</code> to handle <code>QueryParser::ParamsTooDeepError</code> error. (<a href="https://github.com/rack/rack/pull/2011">#2011</a>, <a href="https://github.com/byroot">@byroot</a>)</p> </li></ul> <h2 id="label-5B2.2.5-5D+-+2022-12-27">[2.2.5] - 2022-12-27<span><a href="#label-5B2.2.5-5D+-+2022-12-27">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><code>Rack::URLMap</code> uses non-deprecated form of <code>Regexp.new</code>. (<a href="https://github.com/rack/rack/pull/1998">#1998</a>, <a href="https://github.com/weizheheng">@weizheheng</a>)</p> </li></ul> <h2 id="label-5B2.2.4-5D+-+2022-06-30">[2.2.4] - 2022-06-30<span><a href="#label-5B2.2.4-5D+-+2022-06-30">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Better support for lower case headers in <code>Rack::ETag</code> middleware. (<a href="https://github.com/rack/rack/pull/1919">#1919</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Use custom exception on params too deep error. (<a href="https://github.com/rack/rack/pull/1838">#1838</a>, <a href="https://github.com/simi">@simi</a>)</p> </li></ul> <h2 id="label-5B2.2.3.1-5D+-+2022-05-27">[2.2.3.1] - 2022-05-27<span><a href="#label-5B2.2.3.1-5D+-+2022-05-27">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Security">Security<span><a href="#label-Security">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>[CVE-2022-30123] Fix shell escaping issue in Common Logger</p> </li><li> <p>[CVE-2022-30122] Restrict parsing of broken MIME attachments</p> </li></ul> <h2 id="label-5B2.2.3-5D+-+2020-02-11">[2.2.3] - 2020-02-11<span><a href="#label-5B2.2.3-5D+-+2020-02-11">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Security">Security<span><a href="#label-Security">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>[CVE-2020-8184] Only decode cookie values</p> </li></ul> <h2 id="label-5B2.2.2-5D+-+2020-02-11">[2.2.2] - 2020-02-11<span><a href="#label-5B2.2.2-5D+-+2020-02-11">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Fix incorrect <code>Rack::Request#host</code> value. (<a href="https://github.com/rack/rack/pull/1591">#1591</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Revert <code>Rack::Handler::Thin</code> implementation. (<a href="https://github.com/rack/rack/pull/1583">#1583</a>, <a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Double assignment is still needed to prevent an “unused variable” warning. (<a href="https://github.com/rack/rack/pull/1589">#1589</a>, <a href="https://github.com/kamipo">@kamipo</a>)</p> </li><li> <p>Fix to handle same_site option for session pool. (<a href="https://github.com/rack/rack/pull/1587">#1587</a>, <a href="https://github.com/kamipo">@kamipo</a>)</p> </li></ul> <h2 id="label-5B2.2.1-5D+-+2020-02-09">[2.2.1] - 2020-02-09<span><a href="#label-5B2.2.1-5D+-+2020-02-09">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Rework <code>Rack::Request#ip</code> to handle empty <code>forwarded_for</code>. (<a href="https://github.com/rack/rack/pull/1577">#1577</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h2 id="label-5B2.2.0-5D+-+2020-02-08">[2.2.0] - 2020-02-08<span><a href="#label-5B2.2.0-5D+-+2020-02-08">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-SPEC+Changes">SPEC Changes<span><a href="#label-SPEC+Changes">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><code>rack.session</code> request environment entry must respond to <code>to_hash</code> and return unfrozen Hash. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Request environment cannot be frozen. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>CGI values in the request environment with non-ASCII characters must use ASCII-8BIT encoding. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Improve SPEC/lint relating to SERVER_NAME, SERVER_PORT and HTTP_HOST. (<a href="https://github.com/rack/rack/pull/1561">#1561</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h3 id="label-Added">Added<span><a href="#label-Added">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><code>rackup</code> supports multiple <code>-r</code> options and will require all arguments. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Server</code> supports an array of paths to require for the <code>:require</code> option. (<a href="https://github.com/khotta">@khotta</a>)</p> </li><li> <p><code>Files</code> supports multipart range requests. (<a href="https://github.com/fatkodima">@fatkodima</a>)</p> </li><li> <p><code>Multipart::UploadedFile</code> supports an IO-like object instead of using the filesystem, using <code>:filename</code> and <code>:io</code> options. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Multipart::UploadedFile</code> supports keyword arguments <code>:path</code>, <code>:content_type</code>, and <code>:binary</code> in addition to positional arguments. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Static</code> supports a <code>:cascade</code> option for calling the app if there is no matching file. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Session::Abstract::SessionHash#dig</code>. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Response.[]</code> and <code>MockResponse.[]</code> for creating instances using status, headers, and body. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Convenient cache and content type methods for <code>Rack::Response</code>. (<a href="https://github.com/rack/rack/pull/1555">#1555</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h3 id="label-Changed">Changed<span><a href="#label-Changed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><code>Request#params</code> no longer rescues EOFError. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Directory</code> uses a streaming approach, significantly improving time to first byte for large directories. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Directory</code> no longer includes a Parent directory link in the root directory index. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>QueryParser#parse_nested_query</code> uses original backtrace when reraising exception with new class. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>ConditionalGet</code> follows RFC 7232 precedence if both If-None-Match and If-Modified-Since headers are provided. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>.ru</code> files supports the <code>frozen-string-literal</code> magic comment. (<a href="https://github.com/eregon">@eregon</a>)</p> </li><li> <p>Rely on autoload to load constants instead of requiring internal files, make sure to require 'rack' and not just 'rack/…'. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Etag</code> will continue sending ETag even if the response should not be cached. (<a href="https://github.com/henm">@henm</a>)</p> </li><li> <p><code>Request#host_with_port</code> no longer includes a colon for a missing or empty port. (<a href="https://github.com/AlexWayfer">@AlexWayfer</a>)</p> </li><li> <p>All handlers uses keywords arguments instead of an options hash argument. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p><code>Files</code> handling of range requests no longer return a body that supports <code>to_path</code>, to ensure range requests are handled correctly. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Multipart::Generator</code> only includes <code>Content-Length</code> for files with paths, and <code>Content-Disposition</code> <code>filename</code> if the <code>UploadedFile</code> instance has one. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Request#ssl?</code> is true for the <code>wss</code> scheme (secure websockets). (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Rack::HeaderHash</code> is memoized by default. (<a href="https://github.com/rack/rack/pull/1549">#1549</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p><code>Rack::Directory</code> allow directory traversal inside root directory. (<a href="https://github.com/rack/rack/pull/1417">#1417</a>, <a href="https://github.com/ThomasSevestre">@ThomasSevestre</a>)</p> </li><li> <p>Sort encodings by server preference. (<a href="https://github.com/rack/rack/pull/1184">#1184</a>, <a href="https://github.com/ioquatix">@ioquatix</a>, <a href="https://github.com/wjordan">@wjordan</a>)</p> </li><li> <p>Rework host/hostname/authority implementation in <code>Rack::Request</code>. <code>#host</code> and <code>#host_with_port</code> have been changed to correctly return IPv6 addresses formatted with square brackets, as defined by <a href="https://tools.ietf.org/html/rfc3986#section-3.2.2">RFC3986</a>. (<a href="https://github.com/rack/rack/pull/1561">#1561</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p><code>Rack::Builder</code> parsing options on first <code>#</code> line is deprecated. (<a href="https://github.com/rack/rack/pull/1574">#1574</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h3 id="label-Removed">Removed<span><a href="#label-Removed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><code>Directory#path</code> as it was not used and always returned nil. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>BodyProxy#each</code> as it was only needed to work around a bug in Ruby <1.9.3. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>URLMap::INFINITY</code> and <code>URLMap::NEGATIVE_INFINITY</code>, in favor of <code>Float::INFINITY</code>. (<a href="https://github.com/ch1c0t">@ch1c0t</a>)</p> </li><li> <p>Deprecation of <code>Rack::File</code>. It will be deprecated again in rack 2.2 or 3.0. (<a href="https://github.com/rafaelfranca">@rafaelfranca</a>)</p> </li><li> <p>Support for Ruby 2.2 as it is well past EOL. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Remove <code>Rack::Files#response_body</code> as the implementation was broken. (<a href="https://github.com/rack/rack/pull/1153">#1153</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Remove <code>SERVER_ADDR</code> which was never part of the original SPEC. (<a href="https://github.com/rack/rack/pull/1573">#1573</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><code>Directory</code> correctly handles root paths containing glob metacharacters. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Cascade</code> uses a new response object for each call if initialized with no apps. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>BodyProxy</code> correctly delegates keyword arguments to the body object on Ruby 2.7+. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>BodyProxy#method</code> correctly handles methods delegated to the body object. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Request#host</code> and <code>Request#host_with_port</code> handle IPv6 addresses correctly. (<a href="https://github.com/AlexWayfer">@AlexWayfer</a>)</p> </li><li> <p><code>Lint</code> checks when response hijacking that <code>rack.hijack</code> is called with a valid object. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Response#write</code> correctly updates <code>Content-Length</code> if initialized with a body. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>CommonLogger</code> includes <code>SCRIPT_NAME</code> when logging. (<a href="https://github.com/Erol">@Erol</a>)</p> </li><li> <p><code>Utils.parse_nested_query</code> correctly handles empty queries, using an empty instance of the params class instead of a hash. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Directory</code> correctly escapes paths in links. (<a href="https://github.com/yous">@yous</a>)</p> </li><li> <p><code>Request#delete_cookie</code> and related <code>Utils</code> methods handle <code>:domain</code> and <code>:path</code> options in same call. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Request#delete_cookie</code> and related <code>Utils</code> methods do an exact match on <code>:domain</code> and <code>:path</code> options. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Static</code> no longer adds headers when a gzipped file request has a 304 response. (<a href="https://github.com/chooh">@chooh</a>)</p> </li><li> <p><code>ContentLength</code> sets <code>Content-Length</code> response header even for bodies not responding to <code>to_ary</code>. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Thin handler supports options passed directly to <code>Thin::Controllers::Controller</code>. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><a href="WEBrick.html"><code>WEBrick</code></a> handler no longer ignores <code>:BindAddress</code> option. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>ShowExceptions</code> handles invalid POST data. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Basic authentication requires a password, even if the password is empty. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p><code>Lint</code> checks response is array with 3 elements, per SPEC. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Support for using <code>:SSLEnable</code> option when using <a href="WEBrick.html"><code>WEBrick</code></a> handler. (Gregor Melhorn)</p> </li><li> <p>Close response body after buffering it when buffering. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Only accept <code>;</code> as delimiter when parsing cookies. (<a href="https://github.com/mrageh">@mrageh</a>)</p> </li><li> <p><code>Utils::HeaderHash#clear</code> clears the name mapping as well. (<a href="https://github.com/raxoft">@raxoft</a>)</p> </li><li> <p>Support for passing <code>nil</code> <code>Rack::Files.new</code>, which notably fixes Rails' current <code>ActiveStorage::FileServer</code> implementation. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h3 id="label-Documentation">Documentation<span><a href="#label-Documentation">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p><a href="CHANGELOG_md.html">CHANGELOG</a> updates. (<a href="https://github.com/aupajo">@aupajo</a>)</p> </li><li> <p>Added <a href="CONTRIBUTING.md">CONTRIBUTING</a>. (<a href="https://github.com/dblock">@dblock</a>)</p> </li></ul> <h2 id="label-5B2.1.2-5D+-+2020-01-27">[2.1.2] - 2020-01-27<span><a href="#label-5B2.1.2-5D+-+2020-01-27">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix multipart parser for some files to prevent denial of service (<a href="https://github.com/aiomaster">@aiomaster</a>)</p> </li><li> <p>Fix <code>Rack::Builder#use</code> with keyword arguments (<a href="https://github.com/kamipo">@kamipo</a>)</p> </li><li> <p>Skip deflating in <a href="Rack/Deflater.html"><code>Rack::Deflater</code></a> if Content-Length is 0 (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Remove <code>SessionHash#transform_keys</code>, no longer needed (<a href="https://github.com/pavel">@pavel</a>)</p> </li><li> <p>Add to_hash to wrap Hash and Session classes (<a href="https://github.com/oleh-demyanyuk">@oleh-demyanyuk</a>)</p> </li><li> <p>Handle case where session id key is requested but missing (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li></ul> <h2 id="label-5B2.1.1-5D+-+2020-01-12">[2.1.1] - 2020-01-12<span><a href="#label-5B2.1.1-5D+-+2020-01-12">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Remove <code>Rack::Chunked</code> from <code>Rack::Server</code> default middleware. (<a href="https://github.com/rack/rack/pull/1475">#1475</a>, <a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Restore support for code relying on <code>SessionId#to_s</code>. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li></ul> <h2 id="label-5B2.1.0-5D+-+2020-01-10">[2.1.0] - 2020-01-10<span><a href="#label-5B2.1.0-5D+-+2020-01-10">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Added">Added<span><a href="#label-Added">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Add support for <code>SameSite=None</code> cookie value. (<a href="https://github.com/hennikul">@hennikul</a>)</p> </li><li> <p>Add trailer headers. (<a href="https://github.com/eileencodes">@eileencodes</a>)</p> </li><li> <p>Add MIME Types for video streaming. (<a href="https://github.com/styd">@styd</a>)</p> </li><li> <p>Add MIME Type for WASM. (<a href="https://github.com/buildrtech">@buildrtech</a>)</p> </li><li> <p>Add <code>Early Hints(103)</code> to status codes. (<a href="https://github.com/egtra">@egtra</a>)</p> </li><li> <p>Add <code>Too Early(425)</code> to status codes. (<a href="(https://github.com/y-yagi)">@y-yagi</a>)</p> </li><li> <p>Add <code>Bandwidth Limit Exceeded(509)</code> to status codes. (<a href="https://github.com/CJKinni">@CJKinni</a>)</p> </li><li> <p>Add method for custom <code>ip_filter</code>. (<a href="https://github.com/svcastaneda">@svcastaneda</a>)</p> </li><li> <p>Add boot-time profiling capabilities to <code>rackup</code>. (<a href="https://github.com/tenderlove">@tenderlove</a>)</p> </li><li> <p>Add multi mapping support for <code>X-Accel-Mappings</code> header. (<a href="https://github.com/yoshuki">@yoshuki</a>)</p> </li><li> <p>Add <code>sync: false</code> option to <code>Rack::Deflater</code>. (Eric Wong)</p> </li><li> <p>Add <code>Builder#freeze_app</code> to freeze application and all middleware instances. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li><li> <p>Add API to extract cookies from <code>Rack::MockResponse</code>. (<a href="https://github.com/petercline">@petercline</a>)</p> </li></ul> <h3 id="label-Changed">Changed<span><a href="#label-Changed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Don't propagate nil values from middleware. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Lazily initialize the response body and only buffer it if required. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Fix deflater zlib buffer errors on empty body part. (<a href="https://github.com/felixbuenemann">@felixbuenemann</a>)</p> </li><li> <p>Set <code>X-Accel-Redirect</code> to percent-encoded path. (<a href="https://github.com/diskkid">@diskkid</a>)</p> </li><li> <p>Remove unnecessary buffer growing when parsing multipart. (<a href="https://github.com/tainoe">@tainoe</a>)</p> </li><li> <p>Expand the root path in <code>Rack::Static</code> upon initialization. (<a href="https://github.com/rosenfeld">@rosenfeld</a>)</p> </li><li> <p>Make <code>ShowExceptions</code> work with binary data. (<a href="https://github.com/axyjo">@axyjo</a>)</p> </li><li> <p>Use buffer string when parsing multipart requests. (<a href="https://github.com/janko-m">@janko-m</a>)</p> </li><li> <p>Support optional UTF-8 Byte Order Mark (BOM) in config.ru. (<a href="https://github.com/mikegee">@mikegee</a>)</p> </li><li> <p>Handle <code>X-Forwarded-For</code> with optional port. (<a href="https://github.com/dpritchett">@dpritchett</a>)</p> </li><li> <p>Use <code>Time#httpdate</code> format for Expires, as proposed by RFC 7231. (<a href="https://github.com/nanaya">@nanaya</a>)</p> </li><li> <p>Make <code>Utils.status_code</code> raise an error when the status symbol is invalid instead of <code>500</code>. (<a href="https://github.com/adambutler">@adambutler</a>)</p> </li><li> <p>Rename <code>Request::SCHEME_WHITELIST</code> to <code>Request::ALLOWED_SCHEMES</code>.</p> </li><li> <p>Make <code>Multipart::Parser.get_filename</code> accept files with <code>+</code> in their name. (<a href="https://github.com/lucaskanashiro">@lucaskanashiro</a>)</p> </li><li> <p>Add Falcon to the default handler fallbacks. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Update codebase to avoid string mutations in preparation for <code>frozen_string_literals</code>. (<a href="https://github.com/pat">@pat</a>)</p> </li><li> <p>Change <code>MockRequest#env_for</code> to rely on the input optionally responding to <code>#size</code> instead of <code>#length</code>. (<a href="https://github.com/janko">@janko</a>)</p> </li><li> <p>Rename <code>Rack::File</code> -> <code>Rack::Files</code> and add deprecation notice. (<a href="https://github.com/postmodern">@postmodern</a>).</p> </li><li> <p>Prefer Base64 “strict encoding” for Base64 cookies. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li></ul> <h3 id="label-Removed">Removed<span><a href="#label-Removed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Remove <code>to_ary</code> from Response (<a href="https://github.com/tenderlove">@tenderlove</a>)</p> </li><li> <p>Deprecate <code>Rack::Session::Memcache</code> in favor of <code>Rack::Session::Dalli</code> from dalli gem (<a href="https://github.com/fatkodima">@fatkodima</a>)</p> </li></ul> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Eliminate warnings for Ruby 2.7. (<a href="https://github.com/osamtimizer">@osamtimizer</a>])</p> </li></ul> <h3 id="label-Documentation">Documentation<span><a href="#label-Documentation">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Update broken example in <code>Session::Abstract::ID</code> documentation. (<a href="https://github.com/tonytonyjan">tonytonyjan</a>)</p> </li><li> <p>Add Padrino to the list of frameworks implementing <a href="Rack.html"><code>Rack</code></a>. (<a href="https://github.com/wikimatze">@wikimatze</a>)</p> </li><li> <p>Remove Mongrel from the suggested server options in the help output. (<a href="https://github.com/tricknotes">@tricknotes</a>)</p> </li><li> <p>Replace <code>HISTORY.md</code> and <code>NEWS.md</code> with <code>CHANGELOG.md</code>. (<a href="https://github.com/twitnithegirl">@twitnithegirl</a>)</p> </li><li> <p><a href="CHANGELOG_md.html">CHANGELOG</a> updates. (<a href="https://github.com/Drenmi">@drenmi</a>, <a href="https://github.com/p8">@p8</a>)</p> </li></ul> <h2 id="label-5B2.0.8-5D+-+2019-12-08">[2.0.8] - 2019-12-08<span><a href="#label-5B2.0.8-5D+-+2019-12-08">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Security">Security<span><a href="#label-Security">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>[<a href="https://nvd.nist.gov/vuln/detail/CVE-2019-16782">CVE-2019-16782</a>] Prevent timing attacks targeted at session ID lookup. BREAKING CHANGE: Session ID is now a SessionId instance instead of a String. (<a href="https://github.com/tenderlove">@tenderlove</a>, <a href="https://github.com/rafaelfranca">@rafaelfranca</a>)</p> </li></ul> <h2 id="label-5B1.6.12-5D+-+2019-12-08">[1.6.12] - 2019-12-08<span><a href="#label-5B1.6.12-5D+-+2019-12-08">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Security">Security<span><a href="#label-Security">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>[<a href="https://nvd.nist.gov/vuln/detail/CVE-2019-16782">CVE-2019-16782</a>] Prevent timing attacks targeted at session ID lookup. BREAKING CHANGE: Session ID is now a SessionId instance instead of a String. (<a href="https://github.com/tenderlove">@tenderlove</a>, <a href="https://github.com/rafaelfranca">@rafaelfranca</a>)</p> </li></ul> <h2 id="label-5B2.0.7-5D+-+2019-04-02">[2.0.7] - 2019-04-02<span><a href="#label-5B2.0.7-5D+-+2019-04-02">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Remove calls to <code>#eof?</code> on <a href="Rack.html"><code>Rack</code></a> input in <code>Multipart::Parser</code>, as this breaks the specification. (<a href="https://github.com/matthewd">@matthewd</a>)</p> </li><li> <p>Preserve forwarded IP addresses for trusted proxy chains. (<a href="https://github.com/SamSaffron">@SamSaffron</a>)</p> </li></ul> <h2 id="label-5B2.0.6-5D+-+2018-11-05">[2.0.6] - 2018-11-05<span><a href="#label-5B2.0.6-5D+-+2018-11-05">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>[<a href="https://nvd.nist.gov/vuln/detail/CVE-2018-16470">CVE-2018-16470</a>] Reduce buffer size of <code>Multipart::Parser</code> to avoid pathological parsing. (<a href="https://github.com/tenderlove">@tenderlove</a>)</p> </li><li> <p>Fix a call to a non-existing method <code>#accepts_html</code> in the <code>ShowExceptions</code> middleware. (<a href="https://github.com/tomelm">@tomelm</a>)</p> </li><li> <p>[<a href="https://nvd.nist.gov/vuln/detail/CVE-2018-16471">CVE-2018-16471</a>] Whitelist HTTP and HTTPS schemes in <code>Request#scheme</code> to prevent a possible XSS attack. (<a href="https://github.com/PatrickTulskie">@PatrickTulskie</a>)</p> </li></ul> <h2 id="label-5B2.0.5-5D+-+2018-04-23">[2.0.5] - 2018-04-23<span><a href="#label-5B2.0.5-5D+-+2018-04-23">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Record errors originating from invalid UTF8 in <code>MethodOverride</code> middleware instead of breaking. (<a href="https://github.com/mclark">@mclark</a>)</p> </li></ul> <h2 id="label-5B2.0.4-5D+-+2018-01-31">[2.0.4] - 2018-01-31<span><a href="#label-5B2.0.4-5D+-+2018-01-31">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Changed">Changed<span><a href="#label-Changed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Ensure the <code>Lock</code> middleware passes the original <code>env</code> object. (<a href="https://github.com/lugray">@lugray</a>)</p> </li><li> <p>Improve performance of <code>Multipart::Parser</code> when uploading large files. (<a href="https://github.com/tompng">@tompng</a>)</p> </li><li> <p>Increase buffer size in <code>Multipart::Parser</code> for better performance. (<a href="https://github.com/jkowens">@jkowens</a>)</p> </li><li> <p>Reduce memory usage of <code>Multipart::Parser</code> when uploading large files. (<a href="https://github.com/tompng">@tompng</a>)</p> </li><li> <p>Replace ConcurrentRuby dependency with native <code>Queue</code>. (<a href="https://github.com/devmchakan">@devmchakan</a>)</p> </li></ul> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Require the correct digest algorithm in the <code>ETag</code> middleware. (<a href="https://github.com/matthewd">@matthewd</a>)</p> </li></ul> <h3 id="label-Documentation">Documentation<span><a href="#label-Documentation">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Update homepage links to use SSL. (<a href="https://github.com/hugoabonizio">@hugoabonizio</a>)</p> </li></ul> <h2 id="label-5B2.0.3-5D+-+2017-05-15">[2.0.3] - 2017-05-15<span><a href="#label-5B2.0.3-5D+-+2017-05-15">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Changed">Changed<span><a href="#label-Changed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Ensure <code>env</code> values are ASCII 8-bit encoded. (<a href="https://github.com/eileencodes">@eileencodes</a>)</p> </li></ul> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Prevent exceptions when a class with mixins inherits from <code>Session::Abstract::ID</code>. (<a href="https://github.com/jnraine">@jnraine</a>)</p> </li></ul> <h2 id="label-5B2.0.2-5D+-+2017-05-08">[2.0.2] - 2017-05-08<span><a href="#label-5B2.0.2-5D+-+2017-05-08">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Added">Added<span><a href="#label-Added">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Allow <code>Session::Abstract::SessionHash#fetch</code> to accept a block with a default value. (<a href="https://github.com/yannvanhalewyn">@yannvanhalewyn</a>)</p> </li><li> <p>Add <code>Builder#freeze_app</code> to freeze application and all middleware. (<a href="https://github.com/jeremyevans">@jeremyevans</a>)</p> </li></ul> <h3 id="label-Changed">Changed<span><a href="#label-Changed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Freeze default session options to avoid accidental mutation. (<a href="https://github.com/kirs">@kirs</a>)</p> </li><li> <p>Detect partial hijack without hash headers. (<a href="https://github.com/devmchakan">@devmchakan</a>)</p> </li><li> <p>Update tests to use MiniTest 6 matchers. (<a href="https://github.com/tonytonyjan">@tonytonyjan</a>)</p> </li><li> <p>Allow 205 Reset Content responses to set a Content-Length, as RFC 7231 proposes setting this to 0. (<a href="https://github.com/devmchakan">@devmchakan</a>)</p> </li></ul> <h3 id="label-Fixed">Fixed<span><a href="#label-Fixed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Handle <code>NULL</code> bytes in multipart filenames. (<a href="https://github.com/casperisfine">@casperisfine</a>)</p> </li><li> <p>Remove warnings due to miscapitalized global. (<a href="https://github.com/ioquatix">@ioquatix</a>)</p> </li><li> <p>Prevent exceptions caused by a race condition on multi-threaded servers. (<a href="https://github.com/sophiedeziel">@sophiedeziel</a>)</p> </li><li> <p>Add RDoc as an explicit depencency for <code>doc</code> group. (<a href="https://github.com/tonytonyjan">@tonytonyjan</a>)</p> </li><li> <p>Record errors originating from <code>Multipart::Parser</code> in the <code>MethodOverride</code> middleware instead of letting them bubble up. (<a href="https://github.com/carlzulauf">@carlzulauf</a>)</p> </li><li> <p>Remove remaining use of removed <code>Utils#bytesize</code> method from the <code>File</code> middleware. (<a href="https://github.com/brauliomartinezlm">@brauliomartinezlm</a>)</p> </li></ul> <h3 id="label-Removed">Removed<span><a href="#label-Removed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Remove <code>deflate</code> encoding support to reduce caching overhead. (<a href="https://github.com/devmchakan">@devmchakan</a>)</p> </li></ul> <h3 id="label-Documentation">Documentation<span><a href="#label-Documentation">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Update broken example in <code>Deflater</code> documentation. (<a href="https://github.com/mwpastore">@mwpastore</a>)</p> </li></ul> <h2 id="label-5B2.0.1-5D+-+2016-06-30">[2.0.1] - 2016-06-30<span><a href="#label-5B2.0.1-5D+-+2016-06-30">¶</a> <a href="#top">↑</a></span></h2> <h3 id="label-Changed">Changed<span><a href="#label-Changed">¶</a> <a href="#top">↑</a></span></h3> <ul><li> <p>Remove JSON as an explicit dependency. (<a href="https://github.com/mperham">@mperham</a>)</p> </li></ul> <h1 id="label-History-2FNews+Archive">History/News Archive<span><a href="#label-History-2FNews+Archive">¶</a> <a href="#top">↑</a></span></h1> <p>Items below this line are from the previously maintained HISTORY.md and NEWS.md files.</p> <h2 id="label-5B2.0.0.rc1-5D+2016-05-06">[2.0.0.rc1] 2016-05-06<span><a href="#label-5B2.0.0.rc1-5D+2016-05-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p><a href="Rack/Session/Abstract/ID.html"><code>Rack::Session::Abstract::ID</code></a> is deprecated. Please change to use <a href="Rack/Session/Abstract/Persisted.html"><code>Rack::Session::Abstract::Persisted</code></a></p> </li></ul> <h2 id="label-5B2.0.0.alpha-5D+2015-12-04">[2.0.0.alpha] 2015-12-04<span><a href="#label-5B2.0.0.alpha-5D+2015-12-04">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>First-party “SameSite” cookies. Browsers omit SameSite cookies from third-party requests, closing the door on many CSRF attacks.</p> </li><li> <p>Pass <code>same_site: true</code> (or <code>:strict</code>) to enable: response.set_cookie 'foo', value: 'bar', same_site: true or <code>same_site: :lax</code> to use Lax enforcement: response.set_cookie 'foo', value: 'bar', same_site: :lax</p> </li><li> <p>Based on version 7 of the Same-site Cookies internet draft: <a href="https://tools.ietf.org/html/draft-west-first-party-cookies-07">tools.ietf.org/html/draft-west-first-party-cookies-07</a></p> </li><li> <p>Thanks to Ben Toews (@mastahyeti) and Bob Long (@bobjflong) for updating to drafts 5 and 7.</p> </li><li> <p>Add <code>Rack::Events</code> middleware for adding event based middleware: middleware that does not care about the response body, but only cares about doing work at particular points in the request / response lifecycle.</p> </li><li> <p>Add <code>Rack::Request#authority</code> to calculate the authority under which the response is being made (this will be handy for h2 pushes).</p> </li><li> <p>Add <code>Rack::Response::Helpers#cache_control</code> and <code>cache_control=</code>. Use this for setting cache control headers on your response objects.</p> </li><li> <p>Add <code>Rack::Response::Helpers#etag</code> and <code>etag=</code>. Use this for setting etag values on the response.</p> </li><li> <p>Introduce <code>Rack::Response::Helpers#add_header</code> to add a value to a multi-valued response header. Implemented in terms of other <code>Response#*_header</code> methods, so it's available to any response-like class that includes the <code>Helpers</code> module.</p> </li><li> <p>Add <code>Rack::Request#add_header</code> to match.</p> </li><li> <p><code>Rack::Session::Abstract::ID</code> IS DEPRECATED. Please switch to <code>Rack::Session::Abstract::Persisted</code>. <code>Rack::Session::Abstract::Persisted</code> uses a request object rather than the <code>env</code> hash.</p> </li><li> <p>Pull <code>ENV</code> access inside the request object in to a module. This will help with legacy Request objects that are ENV based but don't want to inherit from <a href="Rack/Request.html"><code>Rack::Request</code></a></p> </li><li> <p>Move most methods on the <code>Rack::Request</code> to a module <code>Rack::Request::Helpers</code> and use public API to get values from the request object. This enables users to mix <code>Rack::Request::Helpers</code> in to their own objects so they can implement <code>(get|set|fetch|each)_header</code> as they see fit (for example a proxy object).</p> </li><li> <p>Files and directories with + in the name are served correctly. Rather than unescaping paths like a form, we unescape with a URI parser using <code>Rack::Utils.unescape_path</code>. Fixes #265</p> </li><li> <p>Tempfiles are automatically closed in the case that there were too many posted.</p> </li><li> <p>Added methods for manipulating response headers that don't assume they're stored as a Hash. Response-like classes may include the <a href="Rack/Response/Helpers.html"><code>Rack::Response::Helpers</code></a> module if they define these methods:</p> <ul><li> <p><a href="Rack/Response.html#method-i-has_header-3F"><code>Rack::Response#has_header?</code></a></p> <ul><li> <p><a href="Rack/Response.html#method-i-get_header"><code>Rack::Response#get_header</code></a></p> </li><li> <p><a href="Rack/Response.html#method-i-set_header"><code>Rack::Response#set_header</code></a></p> </li><li> <p><a href="Rack/Response.html#method-i-delete_header"><code>Rack::Response#delete_header</code></a></p> </li></ul> </li></ul> </li><li> <p>Introduce Util.get_byte_ranges that will parse the value of the HTTP_RANGE string passed to it without depending on the <code>env</code> hash. <code>byte_ranges</code> is deprecated in favor of this method.</p> </li><li> <p>Change Session internals to use Request objects for looking up session information. This allows us to only allocate one request object when dealing with session objects (rather than doing it every time we need to manipulate cookies, etc).</p> </li><li> <p>Add <code>Rack::Request#initialize_copy</code> so that the env is duped when the request gets duped.</p> </li><li> <p>Added methods for manipulating request specific data. This includes data set as CGI parameters, and just any arbitrary data the user wants to associate with a particular request. New methods: - <a href="Rack/Request/Env.html#method-i-has_header-3F"><code>Rack::Request#has_header?</code></a> - <a href="Rack/Request/Env.html#method-i-get_header"><code>Rack::Request#get_header</code></a> - <a href="Rack/Request/Env.html#method-i-fetch_header"><code>Rack::Request#fetch_header</code></a> - <a href="Rack/Request/Env.html#method-i-each_header"><code>Rack::Request#each_header</code></a> - <a href="Rack/Request/Env.html#method-i-set_header"><code>Rack::Request#set_header</code></a> - <a href="Rack/Request/Env.html#method-i-delete_header"><code>Rack::Request#delete_header</code></a></p> </li><li> <p>lib/rack/utils.rb: add a method for constructing “delete” cookie headers. This allows us to construct cookie headers without depending on the side effects of mutating a hash.</p> </li><li> <p>Prevent extremely deep parameters from being parsed. CVE-2015-3225</p> </li></ul> <h2 id="label-5B1.6.1-5D+2015-05-06">[1.6.1] 2015-05-06<span><a href="#label-5B1.6.1-5D+2015-05-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix CVE-2014-9490, denial of service attack in OkJson</p> </li><li> <p>Use a monotonic time for <a href="Rack/Runtime.html"><code>Rack::Runtime</code></a>, if available</p> </li><li> <p>RACK_MULTIPART_LIMIT changed to RACK_MULTIPART_PART_LIMIT (RACK_MULTIPART_LIMIT is deprecated and will be removed in 1.7.0)</p> </li></ul> <h2 id="label-5B1.5.3-5D+2015-05-06">[1.5.3] 2015-05-06<span><a href="#label-5B1.5.3-5D+2015-05-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix CVE-2014-9490, denial of service attack in OkJson</p> </li><li> <p>Backport bug fixes to 1.5 series</p> </li></ul> <h2 id="label-5B1.6.0-5D+2014-01-18">[1.6.0] 2014-01-18<span><a href="#label-5B1.6.0-5D+2014-01-18">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Response#unauthorized? helper</p> </li><li> <p>Deflater now accepts an options hash to control compression on a per-request level</p> </li><li> <p>Builder#warmup method for app preloading</p> </li><li> <p>Request#accept_language method to extract HTTP_ACCEPT_LANGUAGE</p> </li><li> <p>Add quiet mode of rack server, rackup –quiet</p> </li><li> <p>Update HTTP Status Codes to RFC 7231</p> </li><li> <p>Less strict header name validation according to RFC 2616</p> </li><li> <p>SPEC updated to specify headers conform to RFC7230 specification</p> </li><li> <p>Etag correctly marks etags as weak</p> </li><li> <p>Request#port supports multiple x-http-forwarded-proto values</p> </li><li> <p>Utils#multipart_part_limit configures the maximum number of parts a request can contain</p> </li><li> <p>Default host to localhost when in development mode</p> </li><li> <p>Various bugfixes and performance improvements</p> </li></ul> <h2 id="label-5B1.5.2-5D+2013-02-07">[1.5.2] 2013-02-07<span><a href="#label-5B1.5.2-5D+2013-02-07">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix CVE-2013-0263, timing attack against <a href="Rack/Session/Cookie.html"><code>Rack::Session::Cookie</code></a></p> </li><li> <p>Fix CVE-2013-0262, symlink path traversal in <a href="Rack/File.html"><code>Rack::File</code></a></p> </li><li> <p>Add various methods to Session for enhanced Rails compatibility</p> </li><li> <p>Request#trusted_proxy? now only matches whole strings</p> </li><li> <p>Add JSON cookie coder, to be default in <a href="Rack.html"><code>Rack</code></a> 1.6+ due to security concerns</p> </li><li> <p>URLMap host matching in environments that don't set the Host header fixed</p> </li><li> <p>Fix a race condition that could result in overwritten pidfiles</p> </li><li> <p>Various documentation additions</p> </li></ul> <h2 id="label-5B1.4.5-5D+2013-02-07">[1.4.5] 2013-02-07<span><a href="#label-5B1.4.5-5D+2013-02-07">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix CVE-2013-0263, timing attack against <a href="Rack/Session/Cookie.html"><code>Rack::Session::Cookie</code></a></p> </li><li> <p>Fix CVE-2013-0262, symlink path traversal in <a href="Rack/File.html"><code>Rack::File</code></a></p> </li></ul> <h2 id="label-5B1.1.6-2C+1.2.8-2C+1.3.10-5D+2013-02-07">[1.1.6, 1.2.8, 1.3.10] 2013-02-07<span><a href="#label-5B1.1.6-2C+1.2.8-2C+1.3.10-5D+2013-02-07">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix CVE-2013-0263, timing attack against <a href="Rack/Session/Cookie.html"><code>Rack::Session::Cookie</code></a></p> </li></ul> <h2 id="label-5B1.5.1-5D+2013-01-28">[1.5.1] 2013-01-28<span><a href="#label-5B1.5.1-5D+2013-01-28">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p><a href="Rack/Lint.html"><code>Rack::Lint</code></a> check_hijack now conforms to other parts of SPEC</p> </li><li> <p>Added hash-like methods to Abstract::ID::SessionHash for compatibility</p> </li><li> <p>Various documentation corrections</p> </li></ul> <h2 id="label-5B1.5.0-5D+2013-01-21">[1.5.0] 2013-01-21<span><a href="#label-5B1.5.0-5D+2013-01-21">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Introduced hijack SPEC, for before-response and after-response hijacking</p> </li><li> <p>SessionHash is no longer a Hash subclass</p> </li><li> <p><a href="Rack/File.html"><code>Rack::File</code></a> cache_control parameter is removed, in place of headers options</p> </li><li> <p><a href="Rack/Auth/AbstractRequest.html#method-i-scheme"><code>Rack::Auth::AbstractRequest#scheme</code></a> now yields strings, not symbols</p> </li><li> <p><a href="Rack/Utils.html"><code>Rack::Utils</code></a> cookie functions now format expires in RFC 2822 format</p> </li><li> <p><a href="Rack/File.html"><code>Rack::File</code></a> now has a default mime type</p> </li><li> <p>rackup -b 'run <a href="Rack/Files.html#method-c-new"><code>Rack::Files.new</code></a>(“.”)', option provides command line configs</p> </li><li> <p><a href="Rack/Deflater.html"><code>Rack::Deflater</code></a> will no longer double encode bodies</p> </li><li> <p><a href="Rack/Mime.html#method-i-match-3F"><code>Rack::Mime#match?</code></a> provides convenience for Accept header matching</p> </li><li> <p><a href="Rack/Utils.html#method-i-q_values"><code>Rack::Utils#q_values</code></a> provides splitting for Accept headers</p> </li><li> <p><a href="Rack/Utils.html#method-i-best_q_match"><code>Rack::Utils#best_q_match</code></a> provides a helper for Accept headers</p> </li><li> <p><a href="Rack/Handler.html#method-c-pick"><code>Rack::Handler.pick</code></a> provides convenience for finding available servers</p> </li><li> <p>Puma added to the list of default servers (preferred over Webrick)</p> </li><li> <p>Various middleware now correctly close body when replacing it</p> </li><li> <p><a href="Rack/Request.html#method-i-params"><code>Rack::Request#params</code></a> is no longer persistent with only GET params</p> </li><li> <p><a href="Rack/Request.html#method-i-update_param"><code>Rack::Request#update_param</code></a> and delete_param provide persistent operations</p> </li><li> <p><a href="Rack/Request/Helpers.html#method-i-trusted_proxy-3F"><code>Rack::Request#trusted_proxy?</code></a> now returns true for local unix sockets</p> </li><li> <p><a href="Rack/Response.html"><code>Rack::Response</code></a> no longer forces Content-Types</p> </li><li> <p><a href="Rack/Sendfile.html"><code>Rack::Sendfile</code></a> provides local mapping configuration options</p> </li><li> <p><a href="Rack/Utils.html#method-i-rfc2109"><code>Rack::Utils#rfc2109</code></a> provides old netscape style time output</p> </li><li> <p>Updated HTTP status codes</p> </li><li> <p>Ruby 1.8.6 likely no longer passes tests, and is no longer fully supported</p> </li></ul> <h2 id="label-5B1.4.4-2C+1.3.9-2C+1.2.7-2C+1.1.5-5D+2013-01-13">[1.4.4, 1.3.9, 1.2.7, 1.1.5] 2013-01-13<span><a href="#label-5B1.4.4-2C+1.3.9-2C+1.2.7-2C+1.1.5-5D+2013-01-13">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>[SEC] <a href="Rack/Auth/AbstractRequest.html"><code>Rack::Auth::AbstractRequest</code></a> no longer symbolizes arbitrary strings</p> </li><li> <p>Fixed erroneous test case in the 1.3.x series</p> </li></ul> <h2 id="label-5B1.4.3-5D+2013-01-07">[1.4.3] 2013-01-07<span><a href="#label-5B1.4.3-5D+2013-01-07">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Security: Prevent unbounded reads in large multipart boundaries</p> </li></ul> <h2 id="label-5B1.3.8-5D+2013-01-07">[1.3.8] 2013-01-07<span><a href="#label-5B1.3.8-5D+2013-01-07">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Security: Prevent unbounded reads in large multipart boundaries</p> </li></ul> <h2 id="label-5B1.4.2-5D+2013-01-06">[1.4.2] 2013-01-06<span><a href="#label-5B1.4.2-5D+2013-01-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Add warnings when users do not provide a session secret</p> </li><li> <p>Fix parsing performance for unquoted filenames</p> </li><li> <p>Updated URI backports</p> </li><li> <p>Fix URI backport version matching, and silence constant warnings</p> </li><li> <p>Correct parameter parsing with empty values</p> </li><li> <p>Correct rackup '-I' flag, to allow multiple uses</p> </li><li> <p>Correct rackup pidfile handling</p> </li><li> <p>Report rackup line numbers correctly</p> </li><li> <p>Fix request loops caused by non-stale nonces with time limits</p> </li><li> <p>Fix reloader on Windows</p> </li><li> <p>Prevent infinite recursions from Response#to_ary</p> </li><li> <p>Various middleware better conforms to the body close specification</p> </li><li> <p>Updated language for the body close specification</p> </li><li> <p>Additional notes regarding ECMA escape compatibility issues</p> </li><li> <p>Fix the parsing of multiple ranges in range headers</p> </li><li> <p>Prevent errors from empty parameter keys</p> </li><li> <p>Added PATCH verb to <a href="Rack/Request.html"><code>Rack::Request</code></a></p> </li><li> <p>Various documentation updates</p> </li><li> <p>Fix session merge semantics (fixes rack-test)</p> </li><li> <p><a href="Rack/Static.html"><code>Rack::Static</code></a> :index can now handle multiple directories</p> </li><li> <p>All tests now utilize <a href="Rack/Lint.html"><code>Rack::Lint</code></a> (special thanks to Lars Gierth)</p> </li><li> <p><a href="Rack/File.html"><code>Rack::File</code></a> cache_control parameter is now deprecated, and removed by 1.5</p> </li><li> <p>Correct <a href="Rack/Directory.html"><code>Rack::Directory</code></a> script name escaping</p> </li><li> <p><a href="Rack/Static.html"><code>Rack::Static</code></a> supports header rules for sophisticated configurations</p> </li><li> <p>Multipart parsing now works without a Content-Length header</p> </li><li> <p>New logos courtesy of Zachary Scott!</p> </li><li> <p><a href="Rack/BodyProxy.html"><code>Rack::BodyProxy</code></a> now explicitly defines each, useful for C extensions</p> </li><li> <p>Cookies that are not URI escaped no longer cause exceptions</p> </li></ul> <h2 id="label-5B1.3.7-5D+2013-01-06">[1.3.7] 2013-01-06<span><a href="#label-5B1.3.7-5D+2013-01-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Add warnings when users do not provide a session secret</p> </li><li> <p>Fix parsing performance for unquoted filenames</p> </li><li> <p>Updated URI backports</p> </li><li> <p>Fix URI backport version matching, and silence constant warnings</p> </li><li> <p>Correct parameter parsing with empty values</p> </li><li> <p>Correct rackup '-I' flag, to allow multiple uses</p> </li><li> <p>Correct rackup pidfile handling</p> </li><li> <p>Report rackup line numbers correctly</p> </li><li> <p>Fix request loops caused by non-stale nonces with time limits</p> </li><li> <p>Fix reloader on Windows</p> </li><li> <p>Prevent infinite recursions from Response#to_ary</p> </li><li> <p>Various middleware better conforms to the body close specification</p> </li><li> <p>Updated language for the body close specification</p> </li><li> <p>Additional notes regarding ECMA escape compatibility issues</p> </li><li> <p>Fix the parsing of multiple ranges in range headers</p> </li></ul> <h2 id="label-5B1.2.6-5D+2013-01-06">[1.2.6] 2013-01-06<span><a href="#label-5B1.2.6-5D+2013-01-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Add warnings when users do not provide a session secret</p> </li><li> <p>Fix parsing performance for unquoted filenames</p> </li></ul> <h2 id="label-5B1.1.4-5D+2013-01-06">[1.1.4] 2013-01-06<span><a href="#label-5B1.1.4-5D+2013-01-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Add warnings when users do not provide a session secret</p> </li></ul> <h2 id="label-5B1.4.1-5D+2012-01-22">[1.4.1] 2012-01-22<span><a href="#label-5B1.4.1-5D+2012-01-22">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Alter the keyspace limit calculations to reduce issues with nested params</p> </li><li> <p>Add a workaround for multipart parsing where files contain unescaped “%”</p> </li><li> <p>Added <a href="Rack/Response/Helpers.html#method-i-method_not_allowed-3F"><code>Rack::Response::Helpers#method_not_allowed?</code></a> (code 405)</p> </li><li> <p><a href="Rack/File.html"><code>Rack::File</code></a> now returns 404 for illegal directory traversals</p> </li><li> <p><a href="Rack/File.html"><code>Rack::File</code></a> now returns 405 for illegal methods (non HEAD/GET)</p> </li><li> <p><a href="Rack/Cascade.html"><code>Rack::Cascade</code></a> now catches 405 by default, as well as 404</p> </li><li> <p>Cookies missing '–' no longer cause an exception to be raised</p> </li><li> <p>Various style changes and documentation spelling errors</p> </li><li> <p><a href="Rack/BodyProxy.html"><code>Rack::BodyProxy</code></a> always ensures to execute its block</p> </li><li> <p>Additional test coverage around cookies and secrets</p> </li><li> <p><a href="Rack/Session/Cookie.html"><code>Rack::Session::Cookie</code></a> can now be supplied either secret or old_secret</p> </li><li> <p>Tests are no longer dependent on set order</p> </li><li> <p><a href="Rack/Static.html"><code>Rack::Static</code></a> no longer defaults to serving index files</p> </li><li> <p><a href="Rack.html#method-c-release"><code>Rack.release</code></a> was fixed</p> </li></ul> <h2 id="label-5B1.4.0-5D+2011-12-28">[1.4.0] 2011-12-28<span><a href="#label-5B1.4.0-5D+2011-12-28">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Ruby 1.8.6 support has officially been dropped. Not all tests pass.</p> </li><li> <p>Raise sane error messages for broken config.ru</p> </li><li> <p>Allow combining run and map in a config.ru</p> </li><li> <p><a href="Rack/ContentType.html"><code>Rack::ContentType</code></a> will not set Content-Type for responses without a body</p> </li><li> <p>Status code 205 does not send a response body</p> </li><li> <p><a href="Rack/Response/Helpers.html"><code>Rack::Response::Helpers</code></a> will not rely on instance variables</p> </li><li> <p><a href="Rack/Utils.html#method-i-build_query"><code>Rack::Utils.build_query</code></a> no longer outputs '=' for nil query values</p> </li><li> <p>Various mime types added</p> </li><li> <p><a href="Rack/MockRequest.html"><code>Rack::MockRequest</code></a> now supports HEAD</p> </li><li> <p><a href="Rack/Directory.html"><code>Rack::Directory</code></a> now supports files that contain RFC3986 reserved chars</p> </li><li> <p><a href="Rack/File.html"><code>Rack::File</code></a> now only supports GET and HEAD requests</p> </li><li> <p><a href="Rack/Server.html#method-i-start"><code>Rack::Server#start</code></a> now passes the block to Rack::Handler::<h>#run</p> </li><li> <p><a href="Rack/Static.html"><code>Rack::Static</code></a> now supports an index option</p> </li><li> <p>Added the Teapot status code</p> </li><li> <p>rackup now defaults to Thin instead of Mongrel (if installed)</p> </li><li> <p>Support added for HTTP_X_FORWARDED_SCHEME</p> </li><li> <p>Numerous bug fixes, including many fixes for new and alternate rubies</p> </li></ul> <h2 id="label-5B1.1.3-5D+2011-12-28">[1.1.3] 2011-12-28<span><a href="#label-5B1.1.3-5D+2011-12-28">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Security fix. <a href="http://www.ocert.org/advisories/ocert-2011-003.html">www.ocert.org/advisories/ocert-2011-003.html</a> Further information here: <a href="http://jruby.org/2011/12/27/jruby-1-6-5-1">jruby.org/2011/12/27/jruby-1-6-5-1</a></p> </li></ul> <h2 id="label-5B1.3.5-5D+2011-10-17">[1.3.5] 2011-10-17<span><a href="#label-5B1.3.5-5D+2011-10-17">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix annoying warnings caused by the backport in 1.3.4</p> </li></ul> <h2 id="label-5B1.3.4-5D+2011-10-01">[1.3.4] 2011-10-01<span><a href="#label-5B1.3.4-5D+2011-10-01">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Backport security fix from 1.9.3, also fixes some roundtrip issues in URI</p> </li><li> <p>Small documentation update</p> </li><li> <p>Fix an issue where BodyProxy could cause an infinite recursion</p> </li><li> <p>Add some supporting files for travis-ci</p> </li></ul> <h2 id="label-5B1.2.4-5D+2011-09-16">[1.2.4] 2011-09-16<span><a href="#label-5B1.2.4-5D+2011-09-16">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix a bug with MRI regex engine to prevent XSS by malformed unicode</p> </li></ul> <h2 id="label-5B1.3.3-5D+2011-09-16">[1.3.3] 2011-09-16<span><a href="#label-5B1.3.3-5D+2011-09-16">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix bug with broken query parameters in <a href="Rack/ShowExceptions.html"><code>Rack::ShowExceptions</code></a></p> </li><li> <p><a href="Rack/Request/Helpers.html#method-i-cookies"><code>Rack::Request#cookies</code></a> no longer swallows exceptions on broken input</p> </li><li> <p>Prevents XSS attacks enabled by bug in Ruby 1.8's regexp engine</p> </li><li> <p><a href="Rack/ConditionalGet.html"><code>Rack::ConditionalGet</code></a> handles broken If-Modified-Since helpers</p> </li></ul> <h2 id="label-5B1.3.2-5D+2011-07-16">[1.3.2] 2011-07-16<span><a href="#label-5B1.3.2-5D+2011-07-16">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix for Rails and rack-test, <a href="Rack/Utils.html#method-i-escape"><code>Rack::Utils#escape</code></a> calls to_s</p> </li></ul> <h2 id="label-5B1.3.1-5D+2011-07-13">[1.3.1] 2011-07-13<span><a href="#label-5B1.3.1-5D+2011-07-13">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix 1.9.1 support</p> </li><li> <p>Fix JRuby support</p> </li><li> <p>Properly handle $KCODE in <a href="Rack/Utils.html#method-i-escape"><code>Rack::Utils.escape</code></a></p> </li><li> <p>Make method_missing/respond_to behavior consistent for <a href="Rack/Lock.html"><code>Rack::Lock</code></a>, <a href="Rack/Auth/Digest/Request.html"><code>Rack::Auth::Digest::Request</code></a> and <a href="Rack/Multipart/UploadedFile.html"><code>Rack::Multipart::UploadedFile</code></a></p> </li><li> <p>Reenable passing rack.session to session middleware</p> </li><li> <p><a href="Rack/CommonLogger.html"><code>Rack::CommonLogger</code></a> handles streaming responses correctly</p> </li><li> <p><a href="Rack/MockResponse.html"><code>Rack::MockResponse</code></a> calls close on the body object</p> </li><li> <p>Fix a DOS vector from MRI stdlib backport</p> </li></ul> <h2 id="label-5B1.2.3-5D+2011-05-22">[1.2.3] 2011-05-22<span><a href="#label-5B1.2.3-5D+2011-05-22">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Pulled in relevant bug fixes from 1.3</p> </li><li> <p>Fixed 1.8.6 support</p> </li></ul> <h2 id="label-5B1.3.0-5D+2011-05-22">[1.3.0] 2011-05-22<span><a href="#label-5B1.3.0-5D+2011-05-22">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Various performance optimizations</p> </li><li> <p>Various multipart fixes</p> </li><li> <p>Various multipart refactors</p> </li><li> <p>Infinite loop fix for multipart</p> </li><li> <p>Test coverage for <a href="Rack/Server.html"><code>Rack::Server</code></a> returns</p> </li><li> <p>Allow files with '..', but not path components that are '..'</p> </li><li> <p>rackup accepts handler-specific options on the command line</p> </li><li> <p>Request#params no longer merges POST into GET (but returns the same)</p> </li><li> <p>Use URI.encode_www_form_component instead. Use core methods for escaping.</p> </li><li> <p>Allow multi-line comments in the config file</p> </li><li> <p>Bug L#94 reported by Nikolai Lugovoi, query parameter unescaping.</p> </li><li> <p><a href="Rack/Response.html"><code>Rack::Response</code></a> now deletes Content-Length when appropriate</p> </li><li> <p><a href="Rack/Deflater.html"><code>Rack::Deflater</code></a> now supports streaming</p> </li><li> <p>Improved <a href="Rack/Handler.html"><code>Rack::Handler</code></a> loading and searching</p> </li><li> <p>Support for the PATCH verb</p> </li><li> <p><a href="'rack.session.options'">env</a> now contains session options</p> </li><li> <p>Cookies respect renew</p> </li><li> <p>Session middleware uses SecureRandom.hex</p> </li></ul> <h2 id="label-5B1.2.2-2C+1.1.2-5D+2011-03-13">[1.2.2, 1.1.2] 2011-03-13<span><a href="#label-5B1.2.2-2C+1.1.2-5D+2011-03-13">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Security fix in Rack::Auth::Digest::MD5: when authenticator returned nil, permission was granted on empty password.</p> </li></ul> <h2 id="label-5B1.2.1-5D+2010-06-15">[1.2.1] 2010-06-15<span><a href="#label-5B1.2.1-5D+2010-06-15">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Make CGI handler rewindable</p> </li><li> <p>Rename spec/ to test/ to not conflict with SPEC on lesser operating systems</p> </li></ul> <h2 id="label-5B1.2.0-5D+2010-06-13">[1.2.0] 2010-06-13<span><a href="#label-5B1.2.0-5D+2010-06-13">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Removed Camping adapter: Camping 2.0 supports <a href="Rack.html"><code>Rack</code></a> as-is</p> </li><li> <p>Removed parsing of quoted values</p> </li><li> <p>Add Request.trace? and Request.options?</p> </li><li> <p>Add mime-type for .webm and .htc</p> </li><li> <p>Fix HTTP_X_FORWARDED_FOR</p> </li><li> <p>Various multipart fixes</p> </li><li> <p>Switch test suite to bacon</p> </li></ul> <h2 id="label-5B1.1.0-5D+2010-01-03">[1.1.0] 2010-01-03<span><a href="#label-5B1.1.0-5D+2010-01-03">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Moved Auth::OpenID to rack-contrib.</p> </li><li> <p>SPEC change that relaxes Lint slightly to allow subclasses of the required types</p> </li><li> <p>SPEC change to document rack.input binary mode in greator detail</p> </li><li> <p>SPEC define optional rack.logger specification</p> </li><li> <p>File servers support X-Cascade header</p> </li><li> <p>Imported Config middleware</p> </li><li> <p>Imported ETag middleware</p> </li><li> <p>Imported Runtime middleware</p> </li><li> <p>Imported Sendfile middleware</p> </li><li> <p>New Logger and NullLogger middlewares</p> </li><li> <p>Added mime type for .ogv and .manifest.</p> </li><li> <p>Don't squeeze PATH_INFO slashes</p> </li><li> <p>Use Content-Type to determine POST params parsing</p> </li><li> <p>Update Rack::Utils::HTTP_STATUS_CODES hash</p> </li><li> <p>Add status code lookup utility</p> </li><li> <p>Response should call to_i on the status</p> </li><li> <p>Add Request#user_agent</p> </li><li> <p>Request#host knows about forwarded host</p> </li><li> <p>Return an empty string for Request#host if HTTP_HOST and SERVER_NAME are both missing</p> </li><li> <p>Allow MockRequest to accept hash params</p> </li><li> <p>Optimizations to HeaderHash</p> </li><li> <p>Refactored rackup into <a href="Rack/Server.html"><code>Rack::Server</code></a></p> </li><li> <p>Added Utils.build_nested_query to complement Utils.parse_nested_query</p> </li><li> <p>Added Utils::Multipart.build_multipart to complement Utils::Multipart.parse_multipart</p> </li><li> <p>Extracted set and delete cookie helpers into Utils so they can be used outside Response</p> </li><li> <p>Extract parse_query and parse_multipart in Request so subclasses can change their behavior</p> </li><li> <p>Enforce binary encoding in RewindableInput</p> </li><li> <p>Set correct external_encoding for handlers that don't use RewindableInput</p> </li></ul> <h2 id="label-5B1.0.1-5D+2009-10-18">[1.0.1] 2009-10-18<span><a href="#label-5B1.0.1-5D+2009-10-18">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Bump remainder of rack.versions.</p> </li><li> <p>Support the pure Ruby <a href="FCGI.html"><code>FCGI</code></a> implementation.</p> </li><li> <p>Fix for form names containing “=”: split first then unescape components</p> </li><li> <p>Fixes the handling of the filename parameter with semicolons in names.</p> </li><li> <p>Add anchor to nested params parsing regexp to prevent stack overflows</p> </li><li> <p>Use more compatible gzip write api instead of “<<”.</p> </li><li> <p>Make sure that Reloader doesn't break when executed via ruby -e</p> </li><li> <p>Make sure <a href="WEBrick.html"><code>WEBrick</code></a> respects the :Host option</p> </li><li> <p>Many Ruby 1.9 fixes.</p> </li></ul> <h2 id="label-5B1.0.0-5D+2009-04-25">[1.0.0] 2009-04-25<span><a href="#label-5B1.0.0-5D+2009-04-25">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>SPEC change: Rack::VERSION has been pushed to [1,0].</p> </li><li> <p>SPEC change: header values must be Strings now, split on “n”.</p> </li><li> <p>SPEC change: Content-Length can be missing, in this case chunked transfer encoding is used.</p> </li><li> <p>SPEC change: rack.input must be rewindable and support reading into a buffer, wrap with <a href="Rack/RewindableInput.html"><code>Rack::RewindableInput</code></a> if it isn't.</p> </li><li> <p>SPEC change: rack.session is now specified.</p> </li><li> <p>SPEC change: Bodies can now additionally respond to to_path with a filename to be served.</p> </li><li> <p>NOTE: String bodies break in 1.9, use an Array consisting of a single String instead.</p> </li><li> <p>New middleware <a href="Rack/Lock.html"><code>Rack::Lock</code></a>.</p> </li><li> <p>New middleware <a href="Rack/ContentType.html"><code>Rack::ContentType</code></a>.</p> </li><li> <p><a href="Rack/Reloader.html"><code>Rack::Reloader</code></a> has been rewritten.</p> </li><li> <p>Major update to Rack::Auth::OpenID.</p> </li><li> <p>Support for nested parameter parsing in <a href="Rack/Response.html"><code>Rack::Response</code></a>.</p> </li><li> <p>Support for redirects in <a href="Rack/Response.html"><code>Rack::Response</code></a>.</p> </li><li> <p>HttpOnly cookie support in <a href="Rack/Response.html"><code>Rack::Response</code></a>.</p> </li><li> <p>The Rakefile has been rewritten.</p> </li><li> <p>Many bugfixes and small improvements.</p> </li></ul> <h2 id="label-5B0.9.1-5D+2009-01-09">[0.9.1] 2009-01-09<span><a href="#label-5B0.9.1-5D+2009-01-09">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>Fix directory traversal exploits in <a href="Rack/File.html"><code>Rack::File</code></a> and <a href="Rack/Directory.html"><code>Rack::Directory</code></a>.</p> </li></ul> <h2 id="label-5B0.9-5D+2009-01-06">[0.9] 2009-01-06<span><a href="#label-5B0.9-5D+2009-01-06">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p><a href="Rack.html"><code>Rack</code></a> is now managed by the <a href="Rack.html"><code>Rack</code></a> Core Team.</p> </li><li> <p><a href="Rack/Lint.html"><code>Rack::Lint</code></a> is stricter and follows the HTTP RFCs more closely.</p> </li><li> <p>Added ConditionalGet middleware.</p> </li><li> <p>Added ContentLength middleware.</p> </li><li> <p>Added Deflater middleware.</p> </li><li> <p>Added Head middleware.</p> </li><li> <p>Added MethodOverride middleware.</p> </li><li> <p><a href="Rack/Mime.html"><code>Rack::Mime</code></a> now provides popular MIME-types and their extension.</p> </li><li> <p>Mongrel Header now streams.</p> </li><li> <p>Added Thin handler.</p> </li><li> <p>Official support for swiftiplied Mongrel.</p> </li><li> <p>Secure cookies.</p> </li><li> <p>Made HeaderHash case-preserving.</p> </li><li> <p>Many bugfixes and small improvements.</p> </li></ul> <h2 id="label-5B0.4-5D+2008-08-21">[0.4] 2008-08-21<span><a href="#label-5B0.4-5D+2008-08-21">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>New middleware, <a href="Rack/Deflater.html"><code>Rack::Deflater</code></a>, by Christoffer Sawicki.</p> </li><li> <p>OpenID authentication now needs ruby-openid 2.</p> </li><li> <p>New Memcache sessions, by blink.</p> </li><li> <p>Explicit EventedMongrel handler, by Joshua Peek <a href="mailto:josh@joshpeek.com">josh@joshpeek.com</a></p> </li><li> <p><a href="Rack/Reloader.html"><code>Rack::Reloader</code></a> is not loaded in rackup development mode.</p> </li><li> <p>rackup can daemonize with -D.</p> </li><li> <p>Many bugfixes, especially for pool sessions, URLMap, thread safety and tempfile handling.</p> </li><li> <p>Improved tests.</p> </li><li> <p><a href="Rack.html"><code>Rack</code></a> moved to Git.</p> </li></ul> <h2 id="label-5B0.3-5D+2008-02-26">[0.3] 2008-02-26<span><a href="#label-5B0.3-5D+2008-02-26">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>LiteSpeed handler, by Adrian Madrid.</p> </li><li> <p>SCGI handler, by Jeremy Evans.</p> </li><li> <p>Pool sessions, by blink.</p> </li><li> <p>OpenID authentication, by blink.</p> </li><li> <p>:Port and :File options for opening FastCGI sockets, by blink.</p> </li><li> <p>Last-Modified HTTP header for <a href="Rack/File.html"><code>Rack::File</code></a>, by blink.</p> </li><li> <p><a href="Rack/Builder.html#method-i-use"><code>Rack::Builder#use</code></a> now accepts blocks, by Corey Jewett. (See example/protectedlobster.ru)</p> </li><li> <p>HTTP status 201 can contain a Content-Type and a body now.</p> </li><li> <p>Many bugfixes, especially related to Cookie handling.</p> </li></ul> <h2 id="label-5B0.2-5D+2007-05-16">[0.2] 2007-05-16<span><a href="#label-5B0.2-5D+2007-05-16">¶</a> <a href="#top">↑</a></span></h2> <ul><li> <p>HTTP Basic authentication.</p> </li><li> <p>Cookie Sessions.</p> </li><li> <p>Static file handler.</p> </li><li> <p>Improved <a href="Rack/Request.html"><code>Rack::Request</code></a>.</p> </li><li> <p>Improved <a href="Rack/Response.html"><code>Rack::Response</code></a>.</p> </li><li> <p>Added <a href="Rack/ShowStatus.html"><code>Rack::ShowStatus</code></a>, for better default error messages.</p> </li><li> <p>Bug fixes in the Camping adapter.</p> </li><li> <p>Removed Rails adapter, was too alpha.</p> </li></ul> <h2 id="label-5B0.1-5D+2007-03-03">[0.1] 2007-03-03<span><a href="#label-5B0.1-5D+2007-03-03">¶</a> <a href="#top">↑</a></span></h2> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="https://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>