Use lower case normalisation for cookie attributes. (#1849)
[rack.git] / CHANGELOG.md
blobd3a6b081cc8f8cb234661695948e9678fb1a773b
1 # Changelog
3 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 [Keep A Changelog](https://keepachangelog.com/en/1.0.0/).
5 ## [3.0.0] - Unreleased
7 ### Security
9 - Do not use semicolon as GET parameter separator. ([#1733](https://github.com/rack/rack/pull/1733), [@jeremyevans](https://github.com/jeremyevans))
11 ### SPEC Changes
13 - rack.input is no longer required to be rewindable.
14 - rack.multithread/rack.multiprocess/rack.run_once are no longer required environment keys.
15 - Response status must now be an integer greater than or equal to 100.
16 - Response headers must now be an unfrozen hash.
17 - Response header keys can no longer include uppercase characters.
18 - Response body can now respond to #call instead of #each, for the equivalent of response hijacking in previous versions.
19 - Middleware must no longer call #each on the body, but they can call #to_ary on the body if it responds to #to_ary.
21 ### Removed
23 - Remove `rack.multithread`/`rack.multiprocess`/`rack.run_once`. These variables generally come too late to be useful. ([#1720](https://github.com/rack/rack/pull/1720), [@ioquatix](https://github.com/ioquatix), [@jeremyevans](https://github.com/jeremyevans)))
24 - Remove deprecated Rack::Request::SCHEME_WHITELIST. ([@jeremyevans](https://github.com/jeremyevans))
25 - Remove internal cookie deletion using pattern matching, there are very few pratical cases where it would be useful and browsers handle it correctly without us doing anything special. ([#1844](https://github.com/rack/rack/pull/1844), [@ioquatix](https://github.com/ioquatix))
27 ### Added
29 - `Rack::Headers` added to support lower-case header keys. ([@jeremyevans](https://github.com/jeremyevans))
30 - `Rack::Utils#set_cookie_header` now supports `escape_key: false` to avoid key escaping.  ([@jeremyevans](https://github.com/jeremyevans))
31 - `Rack::RewindableInput` supports size. ([@ahorek](https://github.com/ahorek))
32 - `Rack::RewindableInput::Middleware` added for making `rack.input` rewindable. ([@jeremyevans](https://github.com/jeremyevans))
33 - The RFC 7239 Forwarded header is now supported and considered by default when looking for information on forwarding, falling back to the the X-Forwarded-* headers. `Rack::Request.forwarded_priority` accessor has been added for configuring the priority of which header to check.  ([#1423](https://github.com/rack/rack/issues/1423), [@jeremyevans](https://github.com/jeremyevans))
35 ### Changed
37 - BREAKING CHANGE: Require `status` to be an Integer. ([#1662](https://github.com/rack/rack/pull/1662), [@olleolleolle](https://github.com/olleolleolle))
38 - BREAKING CHANGE: Query parsing now treats parameters without `=` as having the empty string value instead of nil value, to conform to the URL spec. ([#1696](https://github.com/rack/rack/issues/1696), [@jeremyevans](https://github.com/jeremyevans))
39 - Relax validations around `Rack::Request#host` and `Rack::Request#hostname`. ([#1606](https://github.com/rack/rack/issues/1606), [@pvande](https://github.com/pvande))
40 - Removed antiquated handlers: FCGI, LSWS, SCGI, Thin. ([#1658](https://github.com/rack/rack/pull/1658), [@ioquatix](https://github.com/ioquatix))
41 - Removed options from `Rack::Builder.parse_file` and `Rack::Builder.load_file`. ([#1663](https://github.com/rack/rack/pull/1663), [@ioquatix](https://github.com/ioquatix))
42 - HMAC argument for `Rack::Session::Cookie` doesn't accept a class constant anymore, but only a string recognized by OpenSSL (e.g. `"SHA256"`) or compatible instance (e.g. `OpenSSL::Digest.new("SHA256")`) ([#1676](https://github.com/rack/rack/pull/1676), [@bdewater](https://github.com/bdewater))
43 - `Rack::HTTP_VERSION` has been removed and the `HTTP_VERSION` env setting is no longer set in the CGI and Webrick handlers . ([#970](https://github.com/rack/rack/issues/970), [@jeremyevans](https://github.com/jeremyevans))
44 - `Rack::Request#[]` and `#[]=` now warn even in non-verbose mode. ([#1277](https://github.com/rack/rack/issues/1277), [@jeremyevans](https://github.com/jeremyevans))
45 - Decrease default allowed parameter recursion level from 100 to 32. ([#1640](https://github.com/rack/rack/issues/1640), [@jeremyevans](https://github.com/jeremyevans))
46 - Attempting to parse a multipart response with an empty body now raises Rack::Multipart::EmptyContentError. ([#1603](https://github.com/rack/rack/issues/1603), [@jeremyevans](https://github.com/jeremyevans))
47 - `Rack::Utils.secure_compare` uses OpenSSL's faster implementation if available. ([#1711](https://github.com/rack/rack/pull/1711), [@bdewater](https://github.com/bdewater))
48 - `Rack::Request#POST` now caches an empty hash if input content type is not parseable. ([#749](https://github.com/rack/rack/pull/749), [@jeremyevans](https://github.com/jeremyevans))
49 - BREAKING CHANGE: Updated `trusted_proxy?` to match full 127.0.0.0/8 network. ([#1781](https://github.com/rack/rack/pull/1781), [@snbloch](https://github.com/snbloch))
50 - Explicitly deprecate `Rack::File` which was an alias for `Rack::Files`. ([#1811](https://github.com/rack/rack/pull/1720), [@ioquatix](https://github.com/ioquatix)).
51 - Moved `Rack::Session` into [separate gem](https://github.com/rack/rack-session). ([#1805](https://github.com/rack/rack/pull/1805), [@ioquatix](https://github.com/ioquatix))
52 - rackup -D option to daemonizes no longer changes the working directory to the root. ([#1813](https://github.com/rack/rack/pull/1813), [@jeremyevans](https://github.com/jeremyevans))
53 - The X-Forwarded-Proto header is now considered before the X-Forwarded-Scheme header for determining the forwarded protocol. `Rack::Request.x_forwarded_proto_priority` accessor has been added for configuring the priority of which header to check.  ([#1809](https://github.com/rack/rack/issues/1809), [@jeremyevans](https://github.com/jeremyevans))
54 - `Rack::Request.forwarded_authority` (and methods that call it, such as `host`) now returns the last authority in the forwarded header, instead of the first, as earlier forwarded authorities can be forged by clients. This restores the Rack 2.1 behavior. ([#1829](https://github.com/rack/rack/issues/1809), [@jeremyevans](https://github.com/jeremyevans))
55 - Use lower case cookie attributes when creating cookies, and fold cookie attributes to lower case when reading cookies (specifically impacting `secure` and `httponly` attributes). ([#1849](https://github.com/rack/rack/pull/1849), [@ioquatix](https://github.com/ioquatix))
57 ### Fixed
59 - Make Rack::MockResponse handle non-hash headers. ([#1629](https://github.com/rack/rack/issues/1629), [@jeremyevans](https://github.com/jeremyevans))
60 - TempfileReaper now deletes temp files if application raises an exception. ([#1679](https://github.com/rack/rack/issues/1679), [@jeremyevans](https://github.com/jeremyevans))
61 - Fix using Rack::Session::Cookie with coder: Rack::Session::Cookie::Base64::{JSON,Zip}. ([#1666](https://github.com/rack/rack/issues/1666), [@jeremyevans](https://github.com/jeremyevans))
62 - Avoid NoMethodError when accessing Rack::Session::Cookie without requiring delegate first. ([#1610](https://github.com/rack/rack/issues/1610), [@onigra](https://github.com/onigra))
63 - Handle cookies with values that end in '=' ([#1645](https://github.com/rack/rack/pull/1645), [@lukaso](https://github.com/lukaso))
64 - Make `Rack::NullLogger` respond to `#fatal!` [@jeremyevans](https://github.com/jeremyevans))
65 - Fix multipart filename generation for filenames that contain spaces. Encode spaces as "%20" instead of "+" which will be decoded properly by the multipart parser. ([#1736](https://github.com/rack/rack/pull/1645), [@muirdm](https://github.com/muirdm))
66 - `Rack::Request#scheme` returns `ws` or `wss` when one of the `X-Forwarded-Scheme` / `X-Forwarded-Proto` headers is set to `ws` or `wss`, respectively. ([#1730](https://github.com/rack/rack/issues/1730), [@erwanst](https://github.com/erwanst))
68 ## [2.2.3] - 2020-06-15
70 ### Security
72 - [[CVE-2020-8184](https://nvd.nist.gov/vuln/detail/CVE-2020-8184)] Do not allow percent-encoded cookie name to override existing cookie names. BREAKING CHANGE: Accessing cookie names that require URL encoding with decoded name no longer works. ([@fletchto99](https://github.com/fletchto99))
74 ## [2.2.2] - 2020-02-11
76 ### Fixed
78 - Fix incorrect `Rack::Request#host` value. ([#1591](https://github.com/rack/rack/pull/1591), [@ioquatix](https://github.com/ioquatix))
79 - Revert `Rack::Handler::Thin` implementation. ([#1583](https://github.com/rack/rack/pull/1583), [@jeremyevans](https://github.com/jeremyevans))
80 - Double assignment is still needed to prevent an "unused variable" warning. ([#1589](https://github.com/rack/rack/pull/1589), [@kamipo](https://github.com/kamipo))
81 - Fix to handle same_site option for session pool. ([#1587](https://github.com/rack/rack/pull/1587), [@kamipo](https://github.com/kamipo))
83 ## [2.2.1] - 2020-02-09
85 ### Fixed
87 - Rework `Rack::Request#ip` to handle empty `forwarded_for`. ([#1577](https://github.com/rack/rack/pull/1577), [@ioquatix](https://github.com/ioquatix))
89 ## [2.2.0] - 2020-02-08
91 ### SPEC Changes
93 - `rack.session` request environment entry must respond to `to_hash` and return unfrozen Hash. ([@jeremyevans](https://github.com/jeremyevans))
94 - Request environment cannot be frozen. ([@jeremyevans](https://github.com/jeremyevans))
95 - CGI values in the request environment with non-ASCII characters must use ASCII-8BIT encoding. ([@jeremyevans](https://github.com/jeremyevans))
96 - Improve SPEC/lint relating to SERVER_NAME, SERVER_PORT and HTTP_HOST. ([#1561](https://github.com/rack/rack/pull/1561), [@ioquatix](https://github.com/ioquatix))
98 ### Added
100 - `rackup` supports multiple `-r` options and will require all arguments. ([@jeremyevans](https://github.com/jeremyevans))
101 - `Server` supports an array of paths to require for the `:require` option. ([@khotta](https://github.com/khotta))
102 - `Files` supports multipart range requests. ([@fatkodima](https://github.com/fatkodima))
103 - `Multipart::UploadedFile` supports an IO-like object instead of using the filesystem, using `:filename` and `:io` options. ([@jeremyevans](https://github.com/jeremyevans))
104 - `Multipart::UploadedFile` supports keyword arguments `:path`, `:content_type`, and `:binary` in addition to positional arguments. ([@jeremyevans](https://github.com/jeremyevans))
105 - `Static` supports a `:cascade` option for calling the app if there is no matching file. ([@jeremyevans](https://github.com/jeremyevans))
106 - `Session::Abstract::SessionHash#dig`. ([@jeremyevans](https://github.com/jeremyevans))
107 - `Response.[]` and `MockResponse.[]` for creating instances using status, headers, and body. ([@ioquatix](https://github.com/ioquatix))
108 - Convenient cache and content type methods for `Rack::Response`. ([#1555](https://github.com/rack/rack/pull/1555), [@ioquatix](https://github.com/ioquatix))
110 ### Changed
112 - `Request#params` no longer rescues EOFError. ([@jeremyevans](https://github.com/jeremyevans))
113 - `Directory` uses a streaming approach, significantly improving time to first byte for large directories. ([@jeremyevans](https://github.com/jeremyevans))
114 - `Directory` no longer includes a Parent directory link in the root directory index. ([@jeremyevans](https://github.com/jeremyevans))
115 - `QueryParser#parse_nested_query` uses original backtrace when reraising exception with new class. ([@jeremyevans](https://github.com/jeremyevans))
116 - `ConditionalGet` follows RFC 7232 precedence if both If-None-Match and If-Modified-Since headers are provided. ([@jeremyevans](https://github.com/jeremyevans))
117 - `.ru` files supports the `frozen-string-literal` magic comment. ([@eregon](https://github.com/eregon))
118 - Rely on autoload to load constants instead of requiring internal files, make sure to require 'rack' and not just 'rack/...'. ([@jeremyevans](https://github.com/jeremyevans))
119 - BREAKING CHANGE: `Etag` will continue sending ETag even if the response should not be cached. Streaming no longer works without a workaround, see [#1619](https://github.com/rack/rack/issues/1619#issuecomment-848460528). ([@henm](https://github.com/henm))
120 - `Request#host_with_port` no longer includes a colon for a missing or empty port. ([@AlexWayfer](https://github.com/AlexWayfer))
121 - All handlers uses keywords arguments instead of an options hash argument. ([@ioquatix](https://github.com/ioquatix))
122 - `Files` handling of range requests no longer return a body that supports `to_path`, to ensure range requests are handled correctly. ([@jeremyevans](https://github.com/jeremyevans))
123 - `Multipart::Generator` only includes `Content-Length` for files with paths, and `Content-Disposition` `filename` if the `UploadedFile` instance has one. ([@jeremyevans](https://github.com/jeremyevans))
124 - `Request#ssl?` is true for the `wss` scheme (secure websockets). ([@jeremyevans](https://github.com/jeremyevans))
125 - `Rack::HeaderHash` is memoized by default. ([#1549](https://github.com/rack/rack/pull/1549), [@ioquatix](https://github.com/ioquatix))
126 - `Rack::Directory` allow directory traversal inside root directory. ([#1417](https://github.com/rack/rack/pull/1417), [@ThomasSevestre](https://github.com/ThomasSevestre))
127 - Sort encodings by server preference. ([#1184](https://github.com/rack/rack/pull/1184), [@ioquatix](https://github.com/ioquatix), [@wjordan](https://github.com/wjordan))
128 - Rework host/hostname/authority implementation in `Rack::Request`. `#host` and `#host_with_port` have been changed to correctly return IPv6 addresses formatted with square brackets, as defined by [RFC3986](https://tools.ietf.org/html/rfc3986#section-3.2.2). ([#1561](https://github.com/rack/rack/pull/1561), [@ioquatix](https://github.com/ioquatix))
129 - `Rack::Builder` parsing options on first `#\` line is deprecated. ([#1574](https://github.com/rack/rack/pull/1574), [@ioquatix](https://github.com/ioquatix))
131 ### Removed
133 - `Directory#path` as it was not used and always returned nil. ([@jeremyevans](https://github.com/jeremyevans))
134 - `BodyProxy#each` as it was only needed to work around a bug in Ruby <1.9.3. ([@jeremyevans](https://github.com/jeremyevans))
135 - `URLMap::INFINITY` and `URLMap::NEGATIVE_INFINITY`, in favor of `Float::INFINITY`. ([@ch1c0t](https://github.com/ch1c0t))
136 - Deprecation of `Rack::File`. It will be deprecated again in rack 2.2 or 3.0. ([@rafaelfranca](https://github.com/rafaelfranca))
137 - Support for Ruby 2.2 as it is well past EOL. ([@ioquatix](https://github.com/ioquatix))
138 - Remove `Rack::Files#response_body` as the implementation was broken. ([#1153](https://github.com/rack/rack/pull/1153), [@ioquatix](https://github.com/ioquatix))
139 - Remove `SERVER_ADDR` which was never part of the original SPEC. ([#1573](https://github.com/rack/rack/pull/1573), [@ioquatix](https://github.com/ioquatix))
141 ### Fixed
143 - `Directory` correctly handles root paths containing glob metacharacters. ([@jeremyevans](https://github.com/jeremyevans))
144 - `Cascade` uses a new response object for each call if initialized with no apps. ([@jeremyevans](https://github.com/jeremyevans))
145 - `BodyProxy` correctly delegates keyword arguments to the body object on Ruby 2.7+. ([@jeremyevans](https://github.com/jeremyevans))
146 - `BodyProxy#method` correctly handles methods delegated to the body object. ([@jeremyevans](https://github.com/jeremyevans))
147 - `Request#host` and `Request#host_with_port` handle IPv6 addresses correctly. ([@AlexWayfer](https://github.com/AlexWayfer))
148 - `Lint` checks when response hijacking that `rack.hijack` is called with a valid object. ([@jeremyevans](https://github.com/jeremyevans))
149 - `Response#write` correctly updates `Content-Length` if initialized with a body. ([@jeremyevans](https://github.com/jeremyevans))
150 - `CommonLogger` includes `SCRIPT_NAME` when logging. ([@Erol](https://github.com/Erol))
151 - `Utils.parse_nested_query` correctly handles empty queries, using an empty instance of the params class instead of a hash. ([@jeremyevans](https://github.com/jeremyevans))
152 - `Directory` correctly escapes paths in links. ([@yous](https://github.com/yous))
153 - `Request#delete_cookie` and related `Utils` methods handle `:domain` and `:path` options in same call. ([@jeremyevans](https://github.com/jeremyevans))
154 - `Request#delete_cookie` and related `Utils` methods do an exact match on `:domain` and `:path` options. ([@jeremyevans](https://github.com/jeremyevans))
155 - `Static` no longer adds headers when a gzipped file request has a 304 response. ([@chooh](https://github.com/chooh))
156 - `ContentLength` sets `Content-Length` response header even for bodies not responding to `to_ary`. ([@jeremyevans](https://github.com/jeremyevans))
157 - Thin handler supports options passed directly to `Thin::Controllers::Controller`. ([@jeremyevans](https://github.com/jeremyevans))
158 - WEBrick handler no longer ignores `:BindAddress` option. ([@jeremyevans](https://github.com/jeremyevans))
159 - `ShowExceptions` handles invalid POST data. ([@jeremyevans](https://github.com/jeremyevans))
160 - Basic authentication requires a password, even if the password is empty. ([@jeremyevans](https://github.com/jeremyevans))
161 - `Lint` checks response is array with 3 elements, per SPEC. ([@jeremyevans](https://github.com/jeremyevans))
162 - Support for using `:SSLEnable` option when using WEBrick handler. (Gregor Melhorn)
163 - Close response body after buffering it when buffering. ([@ioquatix](https://github.com/ioquatix))
164 - Only accept `;` as delimiter when parsing cookies. ([@mrageh](https://github.com/mrageh))
165 - `Utils::HeaderHash#clear` clears the name mapping as well. ([@raxoft](https://github.com/raxoft))
166 - Support for passing `nil` `Rack::Files.new`, which notably fixes Rails' current `ActiveStorage::FileServer` implementation. ([@ioquatix](https://github.com/ioquatix))
168 ### Documentation
170 - CHANGELOG updates. ([@aupajo](https://github.com/aupajo))
171 - Added [CONTRIBUTING](CONTRIBUTING.md). ([@dblock](https://github.com/dblock))
173 ## [2.0.9] - 2020-02-08
175 - Handle case where session id key is requested but missing ([@jeremyevans](https://github.com/jeremyevans))
176 - Restore support for code relying on `SessionId#to_s`. ([@jeremyevans](https://github.com/jeremyevans))
177 - Add support for `SameSite=None` cookie value. ([@hennikul](https://github.com/hennikul))
179 ## [2.1.2] - 2020-01-27
181 - Fix multipart parser for some files to prevent denial of service ([@aiomaster](https://github.com/aiomaster))
182 - Fix `Rack::Builder#use` with keyword arguments ([@kamipo](https://github.com/kamipo))
183 - Skip deflating in Rack::Deflater if Content-Length is 0 ([@jeremyevans](https://github.com/jeremyevans))
184 - Remove `SessionHash#transform_keys`, no longer needed ([@pavel](https://github.com/pavel))
185 - Add to_hash to wrap Hash and Session classes ([@oleh-demyanyuk](https://github.com/oleh-demyanyuk))
186 - Handle case where session id key is requested but missing ([@jeremyevans](https://github.com/jeremyevans))
188 ## [2.1.1] - 2020-01-12
190 - Remove `Rack::Chunked` from `Rack::Server` default middleware. ([#1475](https://github.com/rack/rack/pull/1475), [@ioquatix](https://github.com/ioquatix))
191 - Restore support for code relying on `SessionId#to_s`. ([@jeremyevans](https://github.com/jeremyevans))
193 ## [2.1.0] - 2020-01-10
195 ### Added
197 - Add support for `SameSite=None` cookie value. ([@hennikul](https://github.com/hennikul))
198 - Add trailer headers. ([@eileencodes](https://github.com/eileencodes))
199 - Add MIME Types for video streaming. ([@styd](https://github.com/styd))
200 - Add MIME Type for WASM. ([@buildrtech](https://github.com/buildrtech))
201 - Add `Early Hints(103)` to status codes. ([@egtra](https://github.com/egtra))
202 - Add `Too Early(425)` to status codes. ([@y-yagi]((https://github.com/y-yagi)))
203 - Add `Bandwidth Limit Exceeded(509)` to status codes. ([@CJKinni](https://github.com/CJKinni))
204 - Add method for custom `ip_filter`. ([@svcastaneda](https://github.com/svcastaneda))
205 - Add boot-time profiling capabilities to `rackup`. ([@tenderlove](https://github.com/tenderlove))
206 - Add multi mapping support for `X-Accel-Mappings` header. ([@yoshuki](https://github.com/yoshuki))
207 - Add `sync: false` option to `Rack::Deflater`. (Eric Wong)
208 - Add `Builder#freeze_app` to freeze application and all middleware instances. ([@jeremyevans](https://github.com/jeremyevans))
209 - Add API to extract cookies from `Rack::MockResponse`. ([@petercline](https://github.com/petercline))
211 ### Changed
213 - Don't propagate nil values from middleware. ([@ioquatix](https://github.com/ioquatix))
214 - Lazily initialize the response body and only buffer it if required. ([@ioquatix](https://github.com/ioquatix))
215 - Fix deflater zlib buffer errors on empty body part. ([@felixbuenemann](https://github.com/felixbuenemann))
216 - Set `X-Accel-Redirect` to percent-encoded path. ([@diskkid](https://github.com/diskkid))
217 - Remove unnecessary buffer growing when parsing multipart. ([@tainoe](https://github.com/tainoe))
218 - Expand the root path in `Rack::Static` upon initialization. ([@rosenfeld](https://github.com/rosenfeld))
219 - Make `ShowExceptions` work with binary data. ([@axyjo](https://github.com/axyjo))
220 - Use buffer string when parsing multipart requests. ([@janko-m](https://github.com/janko-m))
221 - Support optional UTF-8 Byte Order Mark (BOM) in config.ru. ([@mikegee](https://github.com/mikegee))
222 - Handle `X-Forwarded-For` with optional port. ([@dpritchett](https://github.com/dpritchett))
223 - Use `Time#httpdate` format for Expires, as proposed by RFC 7231. ([@nanaya](https://github.com/nanaya))
224 - Make `Utils.status_code` raise an error when the status symbol is invalid instead of `500`. ([@adambutler](https://github.com/adambutler))
225 - Rename `Request::SCHEME_WHITELIST` to `Request::ALLOWED_SCHEMES`.
226 - Make `Multipart::Parser.get_filename` accept files with `+` in their name. ([@lucaskanashiro](https://github.com/lucaskanashiro))
227 - Add Falcon to the default handler fallbacks. ([@ioquatix](https://github.com/ioquatix))
228 - Update codebase to avoid string mutations in preparation for `frozen_string_literals`. ([@pat](https://github.com/pat))
229 - Change `MockRequest#env_for` to rely on the input optionally responding to `#size` instead of `#length`. ([@janko](https://github.com/janko))
230 - Rename `Rack::File` -> `Rack::Files` and add deprecation notice. ([@postmodern](https://github.com/postmodern)).
231 - Prefer Base64 “strict encoding” for Base64 cookies. ([@ioquatix](https://github.com/ioquatix))
233 ### Removed
235 - BREAKING CHANGE: Remove `to_ary` from Response ([@tenderlove](https://github.com/tenderlove))
236 - Deprecate `Rack::Session::Memcache` in favor of `Rack::Session::Dalli` from dalli gem ([@fatkodima](https://github.com/fatkodima))
238 ### Fixed
240 - Eliminate warnings for Ruby 2.7. ([@osamtimizer](https://github.com/osamtimizer]))
242 ### Documentation
244 - Update broken example in `Session::Abstract::ID` documentation. ([tonytonyjan](https://github.com/tonytonyjan))
245 - Add Padrino to the list of frameworks implementing Rack. ([@wikimatze](https://github.com/wikimatze))
246 - Remove Mongrel from the suggested server options in the help output. ([@tricknotes](https://github.com/tricknotes))
247 - Replace `HISTORY.md` and `NEWS.md` with `CHANGELOG.md`. ([@twitnithegirl](https://github.com/twitnithegirl))
248 - CHANGELOG updates. ([@drenmi](https://github.com/Drenmi), [@p8](https://github.com/p8))
250 ## [2.0.8] - 2019-12-08
252 ### Security
254 - [[CVE-2019-16782](https://nvd.nist.gov/vuln/detail/CVE-2019-16782)] Prevent timing attacks targeted at session ID lookup. BREAKING CHANGE: Session ID is now a SessionId instance instead of a String. ([@tenderlove](https://github.com/tenderlove), [@rafaelfranca](https://github.com/rafaelfranca))
256 ## [1.6.12] - 2019-12-08
258 ### Security
260 - [[CVE-2019-16782](https://nvd.nist.gov/vuln/detail/CVE-2019-16782)] Prevent timing attacks targeted at session ID lookup. BREAKING CHANGE: Session ID is now a SessionId instance instead of a String. ([@tenderlove](https://github.com/tenderlove), [@rafaelfranca](https://github.com/rafaelfranca))
262 ## [2.0.7] - 2019-04-02
264 ### Fixed
266 - Remove calls to `#eof?` on Rack input in `Multipart::Parser`, as this breaks the specification. ([@matthewd](https://github.com/matthewd))
267 - Preserve forwarded IP addresses for trusted proxy chains. ([@SamSaffron](https://github.com/SamSaffron))
269 ## [2.0.6] - 2018-11-05
271 ### Fixed
273 - [[CVE-2018-16470](https://nvd.nist.gov/vuln/detail/CVE-2018-16470)] Reduce buffer size of `Multipart::Parser` to avoid pathological parsing. ([@tenderlove](https://github.com/tenderlove))
274 - Fix a call to a non-existing method `#accepts_html` in the `ShowExceptions` middleware. ([@tomelm](https://github.com/tomelm))
275 - [[CVE-2018-16471](https://nvd.nist.gov/vuln/detail/CVE-2018-16471)] Whitelist HTTP and HTTPS schemes in `Request#scheme` to prevent a possible XSS attack. ([@PatrickTulskie](https://github.com/PatrickTulskie))
277 ## [2.0.5] - 2018-04-23
279 ### Fixed
281 - Record errors originating from invalid UTF8 in `MethodOverride` middleware instead of breaking. ([@mclark](https://github.com/mclark))
283 ## [2.0.4] - 2018-01-31
285 ### Changed
287 - Ensure the `Lock` middleware passes the original `env` object. ([@lugray](https://github.com/lugray))
288 - Improve performance of `Multipart::Parser` when uploading large files. ([@tompng](https://github.com/tompng))
289 - Increase buffer size in `Multipart::Parser` for better performance. ([@jkowens](https://github.com/jkowens))
290 - Reduce memory usage of `Multipart::Parser` when uploading large files. ([@tompng](https://github.com/tompng))
291 - Replace ConcurrentRuby dependency with native `Queue`. ([@devmchakan](https://github.com/devmchakan))
293 ### Fixed
295 - Require the correct digest algorithm in the `ETag` middleware. ([@matthewd](https://github.com/matthewd))
297 ### Documentation
299 - Update homepage links to use SSL. ([@hugoabonizio](https://github.com/hugoabonizio))
301 ## [2.0.3] - 2017-05-15
303 ### Changed
305 - Ensure `env` values are ASCII 8-bit encoded. ([@eileencodes](https://github.com/eileencodes))
307 ### Fixed
309 - Prevent exceptions when a class with mixins inherits from `Session::Abstract::ID`. ([@jnraine](https://github.com/jnraine))
311 ## [2.0.2] - 2017-05-08
313 ### Added
315 - Allow `Session::Abstract::SessionHash#fetch` to accept a block with a default value. ([@yannvanhalewyn](https://github.com/yannvanhalewyn))
316 - Add `Builder#freeze_app` to freeze application and all middleware. ([@jeremyevans](https://github.com/jeremyevans))
318 ### Changed
320 - Freeze default session options to avoid accidental mutation. ([@kirs](https://github.com/kirs))
321 - Detect partial hijack without hash headers. ([@devmchakan](https://github.com/devmchakan))
322 - Update tests to use MiniTest 6 matchers. ([@tonytonyjan](https://github.com/tonytonyjan))
323 - Allow 205 Reset Content responses to set a Content-Length, as RFC 7231 proposes setting this to 0. ([@devmchakan](https://github.com/devmchakan))
325 ### Fixed
327 - Handle `NULL` bytes in multipart filenames. ([@casperisfine](https://github.com/casperisfine))
328 - Remove warnings due to miscapitalized global. ([@ioquatix](https://github.com/ioquatix))
329 - Prevent exceptions caused by a race condition on multi-threaded servers. ([@sophiedeziel](https://github.com/sophiedeziel))
330 - Add RDoc as an explicit dependency for `doc` group. ([@tonytonyjan](https://github.com/tonytonyjan))
331 - Record errors originating from `Multipart::Parser` in the `MethodOverride` middleware instead of letting them bubble up. ([@carlzulauf](https://github.com/carlzulauf))
332 - Remove remaining use of removed `Utils#bytesize` method from the `File` middleware. ([@brauliomartinezlm](https://github.com/brauliomartinezlm))
334 ### Removed
336 - Remove `deflate` encoding support to reduce caching overhead. ([@devmchakan](https://github.com/devmchakan))
338 ### Documentation
340 - Update broken example in `Deflater` documentation. ([@mwpastore](https://github.com/mwpastore))
342 ## [2.0.1] - 2016-06-30
344 ### Changed
346 - Remove JSON as an explicit dependency. ([@mperham](https://github.com/mperham))
349 # History/News Archive
350 Items below this line are from the previously maintained HISTORY.md and NEWS.md files.
352 ## [2.0.0.rc1] 2016-05-06
353 - Rack::Session::Abstract::ID is deprecated. Please change to use Rack::Session::Abstract::Persisted
355 ## [2.0.0.alpha] 2015-12-04
356 - First-party "SameSite" cookies. Browsers omit SameSite cookies from third-party requests, closing the door on many CSRF attacks.
357 - Pass `same_site: true` (or `:strict`) to enable: response.set_cookie 'foo', value: 'bar', same_site: true or `same_site: :lax` to use Lax enforcement: response.set_cookie 'foo', value: 'bar', same_site: :lax
358 - Based on version 7 of the Same-site Cookies internet draft:
359         https://tools.ietf.org/html/draft-west-first-party-cookies-07
360 - Thanks to Ben Toews (@mastahyeti) and Bob Long (@bobjflong) for updating to drafts 5 and 7.
361 - Add `Rack::Events` 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.
362 - Add `Rack::Request#authority` to calculate the authority under which the response is being made (this will be handy for h2 pushes).
363 - Add `Rack::Response::Helpers#cache_control` and `cache_control=`. Use this for setting cache control headers on your response objects.
364 - Add `Rack::Response::Helpers#etag` and `etag=`.  Use this for setting etag values on the response.
365 - Introduce `Rack::Response::Helpers#add_header` to add a value to a multi-valued response header. Implemented in terms of other `Response#*_header` methods, so it's available to any response-like class that includes the `Helpers` module.
366 - Add `Rack::Request#add_header` to match.
367 - `Rack::Session::Abstract::ID` IS DEPRECATED.  Please switch to `Rack::Session::Abstract::Persisted`. `Rack::Session::Abstract::Persisted` uses a request object rather than the `env` hash.
368 - Pull `ENV` 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 Rack::Request
369 - Move most methods on the `Rack::Request` to a module `Rack::Request::Helpers` and use public API to get values from the request object.  This enables users to mix `Rack::Request::Helpers` in to their own objects so they can implement `(get|set|fetch|each)_header` as they see fit (for example a proxy object).
370 - Files and directories with + in the name are served correctly. Rather than unescaping paths like a form, we unescape with a URI parser using `Rack::Utils.unescape_path`. Fixes #265
371 - Tempfiles are automatically closed in the case that there were too
372         many posted.
373 - Added methods for manipulating response headers that don't assume
374         they're stored as a Hash. Response-like classes may include the
375         Rack::Response::Helpers module if they define these methods:
376     - Rack::Response#has_header?
377         - Rack::Response#get_header
378         - Rack::Response#set_header
379         - Rack::Response#delete_header
380 - Introduce Util.get_byte_ranges that will parse the value of the HTTP_RANGE string passed to it without depending on the `env` hash. `byte_ranges` is deprecated in favor of this method.
381 - 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).
382 - Add `Rack::Request#initialize_copy` so that the env is duped when the request gets duped.
383 - Added methods for manipulating request specific data.  This includes
384         data set as CGI parameters, and just any arbitrary data the user wants
385         to associate with a particular request.  New methods:
386          - Rack::Request#has_header?
387          - Rack::Request#get_header
388          - Rack::Request#fetch_header
389          - Rack::Request#each_header
390          - Rack::Request#set_header
391          - Rack::Request#delete_header
392 - lib/rack/utils.rb: add a method for constructing "delete" cookie
393         headers.  This allows us to construct cookie headers without depending
394         on the side effects of mutating a hash.
395 - Prevent extremely deep parameters from being parsed. CVE-2015-3225
397 ## [1.6.1] 2015-05-06
398   - Fix CVE-2014-9490, denial of service attack in OkJson
399   - Use a monotonic time for Rack::Runtime, if available
400   - RACK_MULTIPART_LIMIT changed to RACK_MULTIPART_PART_LIMIT (RACK_MULTIPART_LIMIT is deprecated and will be removed in 1.7.0)
402 ## [1.5.3] 2015-05-06
403   - Fix CVE-2014-9490, denial of service attack in OkJson
404   - Backport bug fixes to 1.5 series
406 ## [1.6.0] 2014-01-18
407   - Response#unauthorized? helper
408   - Deflater now accepts an options hash to control compression on a per-request level
409   - Builder#warmup method for app preloading
410   - Request#accept_language method to extract HTTP_ACCEPT_LANGUAGE
411   - Add quiet mode of rack server, rackup --quiet
412   - Update HTTP Status Codes to RFC 7231
413   - Less strict header name validation according to RFC 2616
414   - SPEC updated to specify headers conform to RFC7230 specification
415   - Etag correctly marks etags as weak
416   - Request#port supports multiple x-http-forwarded-proto values
417   - Utils#multipart_part_limit configures the maximum number of parts a request can contain
418   - Default host to localhost when in development mode
419   - Various bugfixes and performance improvements
421 ## [1.5.2] 2013-02-07
422   - Fix CVE-2013-0263, timing attack against Rack::Session::Cookie
423   - Fix CVE-2013-0262, symlink path traversal in Rack::File
424   - Add various methods to Session for enhanced Rails compatibility
425   - Request#trusted_proxy? now only matches whole strings
426   - Add JSON cookie coder, to be default in Rack 1.6+ due to security concerns
427   - URLMap host matching in environments that don't set the Host header fixed
428   - Fix a race condition that could result in overwritten pidfiles
429   - Various documentation additions
431 ## [1.4.5] 2013-02-07
432   - Fix CVE-2013-0263, timing attack against Rack::Session::Cookie
433   - Fix CVE-2013-0262, symlink path traversal in Rack::File
435 ## [1.1.6, 1.2.8, 1.3.10] 2013-02-07
436   - Fix CVE-2013-0263, timing attack against Rack::Session::Cookie
438 ## [1.5.1] 2013-01-28
439   - Rack::Lint check_hijack now conforms to other parts of SPEC
440   - Added hash-like methods to Abstract::ID::SessionHash for compatibility
441   - Various documentation corrections
443 ## [1.5.0] 2013-01-21
444   - Introduced hijack SPEC, for before-response and after-response hijacking
445   - SessionHash is no longer a Hash subclass
446   - Rack::File cache_control parameter is removed, in place of headers options
447   - Rack::Auth::AbstractRequest#scheme now yields strings, not symbols
448   - Rack::Utils cookie functions now format expires in RFC 2822 format
449   - Rack::File now has a default mime type
450   - rackup -b 'run Rack::Files.new(".")', option provides command line configs
451   - Rack::Deflater will no longer double encode bodies
452   - Rack::Mime#match? provides convenience for Accept header matching
453   - Rack::Utils#q_values provides splitting for Accept headers
454   - Rack::Utils#best_q_match provides a helper for Accept headers
455   - Rack::Handler.pick provides convenience for finding available servers
456   - Puma added to the list of default servers (preferred over Webrick)
457   - Various middleware now correctly close body when replacing it
458   - Rack::Request#params is no longer persistent with only GET params
459   - Rack::Request#update_param and #delete_param provide persistent operations
460   - Rack::Request#trusted_proxy? now returns true for local unix sockets
461   - Rack::Response no longer forces Content-Types
462   - Rack::Sendfile provides local mapping configuration options
463   - Rack::Utils#rfc2109 provides old netscape style time output
464   - Updated HTTP status codes
465   - Ruby 1.8.6 likely no longer passes tests, and is no longer fully supported
467 ## [1.4.4, 1.3.9, 1.2.7, 1.1.5] 2013-01-13
468   - [SEC] Rack::Auth::AbstractRequest no longer symbolizes arbitrary strings
469   - Fixed erroneous test case in the 1.3.x series
471 ## [1.4.3] 2013-01-07
472   - Security: Prevent unbounded reads in large multipart boundaries
474 ## [1.3.8] 2013-01-07
475   - Security: Prevent unbounded reads in large multipart boundaries
477 ## [1.4.2] 2013-01-06
478   - Add warnings when users do not provide a session secret
479   - Fix parsing performance for unquoted filenames
480   - Updated URI backports
481   - Fix URI backport version matching, and silence constant warnings
482   - Correct parameter parsing with empty values
483   - Correct rackup '-I' flag, to allow multiple uses
484   - Correct rackup pidfile handling
485   - Report rackup line numbers correctly
486   - Fix request loops caused by non-stale nonces with time limits
487   - Fix reloader on Windows
488   - Prevent infinite recursions from Response#to_ary
489   - Various middleware better conforms to the body close specification
490   - Updated language for the body close specification
491   - Additional notes regarding ECMA escape compatibility issues
492   - Fix the parsing of multiple ranges in range headers
493   - Prevent errors from empty parameter keys
494   - Added PATCH verb to Rack::Request
495   - Various documentation updates
496   - Fix session merge semantics (fixes rack-test)
497   - Rack::Static :index can now handle multiple directories
498   - All tests now utilize Rack::Lint (special thanks to Lars Gierth)
499   - Rack::File cache_control parameter is now deprecated, and removed by 1.5
500   - Correct Rack::Directory script name escaping
501   - Rack::Static supports header rules for sophisticated configurations
502   - Multipart parsing now works without a Content-Length header
503   - New logos courtesy of Zachary Scott!
504   - Rack::BodyProxy now explicitly defines #each, useful for C extensions
505   - Cookies that are not URI escaped no longer cause exceptions
507 ## [1.3.7] 2013-01-06
508   - Add warnings when users do not provide a session secret
509   - Fix parsing performance for unquoted filenames
510   - Updated URI backports
511   - Fix URI backport version matching, and silence constant warnings
512   - Correct parameter parsing with empty values
513   - Correct rackup '-I' flag, to allow multiple uses
514   - Correct rackup pidfile handling
515   - Report rackup line numbers correctly
516   - Fix request loops caused by non-stale nonces with time limits
517   - Fix reloader on Windows
518   - Prevent infinite recursions from Response#to_ary
519   - Various middleware better conforms to the body close specification
520   - Updated language for the body close specification
521   - Additional notes regarding ECMA escape compatibility issues
522   - Fix the parsing of multiple ranges in range headers
524 ## [1.2.6] 2013-01-06
525   - Add warnings when users do not provide a session secret
526   - Fix parsing performance for unquoted filenames
528 ## [1.1.4] 2013-01-06
529   - Add warnings when users do not provide a session secret
531 ## [1.4.1] 2012-01-22
532   - Alter the keyspace limit calculations to reduce issues with nested params
533   - Add a workaround for multipart parsing where files contain unescaped "%"
534   - Added Rack::Response::Helpers#method_not_allowed? (code 405)
535   - Rack::File now returns 404 for illegal directory traversals
536   - Rack::File now returns 405 for illegal methods (non HEAD/GET)
537   - Rack::Cascade now catches 405 by default, as well as 404
538   - Cookies missing '--' no longer cause an exception to be raised
539   - Various style changes and documentation spelling errors
540   - Rack::BodyProxy always ensures to execute its block
541   - Additional test coverage around cookies and secrets
542   - Rack::Session::Cookie can now be supplied either secret or old_secret
543   - Tests are no longer dependent on set order
544   - Rack::Static no longer defaults to serving index files
545   - Rack.release was fixed
547 ## [1.4.0] 2011-12-28
548   - Ruby 1.8.6 support has officially been dropped. Not all tests pass.
549   - Raise sane error messages for broken config.ru
550   - Allow combining run and map in a config.ru
551   - Rack::ContentType will not set Content-Type for responses without a body
552   - Status code 205 does not send a response body
553   - Rack::Response::Helpers will not rely on instance variables
554   - Rack::Utils.build_query no longer outputs '=' for nil query values
555   - Various mime types added
556   - Rack::MockRequest now supports HEAD
557   - Rack::Directory now supports files that contain RFC3986 reserved chars
558   - Rack::File now only supports GET and HEAD requests
559   - Rack::Server#start now passes the block to Rack::Handler::<h>#run
560   - Rack::Static now supports an index option
561   - Added the Teapot status code
562   - rackup now defaults to Thin instead of Mongrel (if installed)
563   - Support added for HTTP_X_FORWARDED_SCHEME
564   - Numerous bug fixes, including many fixes for new and alternate rubies
566 ## [1.1.3] 2011-12-28
567   - Security fix. http://www.ocert.org/advisories/ocert-2011-003.html
568     Further information here: http://jruby.org/2011/12/27/jruby-1-6-5-1
570 ## [1.3.5] 2011-10-17
571   - Fix annoying warnings caused by the backport in 1.3.4
573 ## [1.3.4] 2011-10-01
574   - Backport security fix from 1.9.3, also fixes some roundtrip issues in URI
575   - Small documentation update
576   - Fix an issue where BodyProxy could cause an infinite recursion
577   - Add some supporting files for travis-ci
579 ## [1.2.4] 2011-09-16
580   - Fix a bug with MRI regex engine to prevent XSS by malformed unicode
582 ## [1.3.3] 2011-09-16
583   - Fix bug with broken query parameters in Rack::ShowExceptions
584   - Rack::Request#cookies no longer swallows exceptions on broken input
585   - Prevents XSS attacks enabled by bug in Ruby 1.8's regexp engine
586   - Rack::ConditionalGet handles broken If-Modified-Since helpers
588 ## [1.3.2] 2011-07-16
589   - Fix for Rails and rack-test, Rack::Utils#escape calls to_s
591 ## [1.3.1] 2011-07-13
592   - Fix 1.9.1 support
593   - Fix JRuby support
594   - Properly handle $KCODE in Rack::Utils.escape
595   - Make method_missing/respond_to behavior consistent for Rack::Lock,
596     Rack::Auth::Digest::Request and Rack::Multipart::UploadedFile
597   - Reenable passing rack.session to session middleware
598   - Rack::CommonLogger handles streaming responses correctly
599   - Rack::MockResponse calls close on the body object
600   - Fix a DOS vector from MRI stdlib backport
602 ## [1.2.3] 2011-05-22
603   - Pulled in relevant bug fixes from 1.3
604   - Fixed 1.8.6 support
606 ## [1.3.0] 2011-05-22
607   - Various performance optimizations
608   - Various multipart fixes
609   - Various multipart refactors
610   - Infinite loop fix for multipart
611   - Test coverage for Rack::Server returns
612   - Allow files with '..', but not path components that are '..'
613   - rackup accepts handler-specific options on the command line
614   - Request#params no longer merges POST into GET (but returns the same)
615   - Use URI.encode_www_form_component instead. Use core methods for escaping.
616   - Allow multi-line comments in the config file
617   - Bug L#94 reported by Nikolai Lugovoi, query parameter unescaping.
618   - Rack::Response now deletes Content-Length when appropriate
619   - Rack::Deflater now supports streaming
620   - Improved Rack::Handler loading and searching
621   - Support for the PATCH verb
622   - env['rack.session.options'] now contains session options
623   - Cookies respect renew
624   - Session middleware uses SecureRandom.hex
626 ## [1.2.2, 1.1.2] 2011-03-13
627   - Security fix in Rack::Auth::Digest::MD5: when authenticator
628     returned nil, permission was granted on empty password.
630 ## [1.2.1] 2010-06-15
631   - Make CGI handler rewindable
632   - Rename spec/ to test/ to not conflict with SPEC on lesser
633     operating systems
635 ## [1.2.0] 2010-06-13
636   - Removed Camping adapter: Camping 2.0 supports Rack as-is
637   - Removed parsing of quoted values
638   - Add Request.trace? and Request.options?
639   - Add mime-type for .webm and .htc
640   - Fix HTTP_X_FORWARDED_FOR
641   - Various multipart fixes
642   - Switch test suite to bacon
644 ## [1.1.0] 2010-01-03
645   - Moved Auth::OpenID to rack-contrib.
646   - SPEC change that relaxes Lint slightly to allow subclasses of the
647     required types
648   - SPEC change to document rack.input binary mode in greator detail
649   - SPEC define optional rack.logger specification
650   - File servers support X-Cascade header
651   - Imported Config middleware
652   - Imported ETag middleware
653   - Imported Runtime middleware
654   - Imported Sendfile middleware
655   - New Logger and NullLogger middlewares
656   - Added mime type for .ogv and .manifest.
657   - Don't squeeze PATH_INFO slashes
658   - Use Content-Type to determine POST params parsing
659   - Update Rack::Utils::HTTP_STATUS_CODES hash
660   - Add status code lookup utility
661   - Response should call #to_i on the status
662   - Add Request#user_agent
663   - Request#host knows about forwarded host
664   - Return an empty string for Request#host if HTTP_HOST and
665     SERVER_NAME are both missing
666   - Allow MockRequest to accept hash params
667   - Optimizations to HeaderHash
668   - Refactored rackup into Rack::Server
669   - Added Utils.build_nested_query to complement Utils.parse_nested_query
670   - Added Utils::Multipart.build_multipart to complement
671     Utils::Multipart.parse_multipart
672   - Extracted set and delete cookie helpers into Utils so they can be
673     used outside Response
674   - Extract parse_query and parse_multipart in Request so subclasses
675     can change their behavior
676   - Enforce binary encoding in RewindableInput
677   - Set correct external_encoding for handlers that don't use RewindableInput
679 ## [1.0.1] 2009-10-18
680   - Bump remainder of rack.versions.
681   - Support the pure Ruby FCGI implementation.
682   - Fix for form names containing "=": split first then unescape components
683   - Fixes the handling of the filename parameter with semicolons in names.
684   - Add anchor to nested params parsing regexp to prevent stack overflows
685   - Use more compatible gzip write api instead of "<<".
686   - Make sure that Reloader doesn't break when executed via ruby -e
687   - Make sure WEBrick respects the :Host option
688   - Many Ruby 1.9 fixes.
690 ## [1.0.0] 2009-04-25
691   - SPEC change: Rack::VERSION has been pushed to [1,0].
692   - SPEC change: header values must be Strings now, split on "\n".
693   - SPEC change: Content-Length can be missing, in this case chunked transfer
694     encoding is used.
695   - SPEC change: rack.input must be rewindable and support reading into
696     a buffer, wrap with Rack::RewindableInput if it isn't.
697   - SPEC change: rack.session is now specified.
698   - SPEC change: Bodies can now additionally respond to #to_path with
699     a filename to be served.
700   - NOTE: String bodies break in 1.9, use an Array consisting of a
701     single String instead.
702   - New middleware Rack::Lock.
703   - New middleware Rack::ContentType.
704   - Rack::Reloader has been rewritten.
705   - Major update to Rack::Auth::OpenID.
706   - Support for nested parameter parsing in Rack::Response.
707   - Support for redirects in Rack::Response.
708   - HttpOnly cookie support in Rack::Response.
709   - The Rakefile has been rewritten.
710   - Many bugfixes and small improvements.
712 ## [0.9.1] 2009-01-09
713   - Fix directory traversal exploits in Rack::File and Rack::Directory.
715 ## [0.9] 2009-01-06
716   - Rack is now managed by the Rack Core Team.
717   - Rack::Lint is stricter and follows the HTTP RFCs more closely.
718   - Added ConditionalGet middleware.
719   - Added ContentLength middleware.
720   - Added Deflater middleware.
721   - Added Head middleware.
722   - Added MethodOverride middleware.
723   - Rack::Mime now provides popular MIME-types and their extension.
724   - Mongrel Header now streams.
725   - Added Thin handler.
726   - Official support for swiftiplied Mongrel.
727   - Secure cookies.
728   - Made HeaderHash case-preserving.
729   - Many bugfixes and small improvements.
731 ## [0.4] 2008-08-21
732   - New middleware, Rack::Deflater, by Christoffer Sawicki.
733   - OpenID authentication now needs ruby-openid 2.
734   - New Memcache sessions, by blink.
735   - Explicit EventedMongrel handler, by Joshua Peek <josh@joshpeek.com>
736   - Rack::Reloader is not loaded in rackup development mode.
737   - rackup can daemonize with -D.
738   - Many bugfixes, especially for pool sessions, URLMap, thread safety
739     and tempfile handling.
740   - Improved tests.
741   - Rack moved to Git.
743 ## [0.3] 2008-02-26
744   - LiteSpeed handler, by Adrian Madrid.
745   - SCGI handler, by Jeremy Evans.
746   - Pool sessions, by blink.
747   - OpenID authentication, by blink.
748   - :Port and :File options for opening FastCGI sockets, by blink.
749   - Last-Modified HTTP header for Rack::File, by blink.
750   - Rack::Builder#use now accepts blocks, by Corey Jewett.
751     (See example/protectedlobster.ru)
752   - HTTP status 201 can contain a Content-Type and a body now.
753   - Many bugfixes, especially related to Cookie handling.
755 ## [0.2] 2007-05-16
756   - HTTP Basic authentication.
757   - Cookie Sessions.
758   - Static file handler.
759   - Improved Rack::Request.
760   - Improved Rack::Response.
761   - Added Rack::ShowStatus, for better default error messages.
762   - Bug fixes in the Camping adapter.
763   - Removed Rails adapter, was too alpha.
765 ## [0.1] 2007-03-03