rack 1.4.7 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of rack might be problematic. Click here for more details.

Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/COPYING +1 -1
  3. data/HISTORY.md +505 -0
  4. data/README.rdoc +62 -354
  5. data/Rakefile +10 -16
  6. data/SPEC +121 -31
  7. data/contrib/rack_logo.svg +164 -111
  8. data/example/protectedlobster.rb +2 -2
  9. data/example/protectedlobster.ru +1 -1
  10. data/lib/rack/auth/abstract/handler.rb +4 -4
  11. data/lib/rack/auth/abstract/request.rb +6 -6
  12. data/lib/rack/auth/basic.rb +1 -1
  13. data/lib/rack/auth/digest/md5.rb +1 -1
  14. data/lib/rack/auth/digest/params.rb +2 -3
  15. data/lib/rack/auth/digest/request.rb +2 -2
  16. data/lib/rack/body_proxy.rb +14 -9
  17. data/lib/rack/builder.rb +30 -11
  18. data/lib/rack/cascade.rb +5 -5
  19. data/lib/rack/chunked.rb +18 -7
  20. data/lib/rack/{commonlogger.rb → common_logger.rb} +18 -10
  21. data/lib/rack/{conditionalget.rb → conditional_get.rb} +18 -6
  22. data/lib/rack/config.rb +5 -0
  23. data/lib/rack/content_length.rb +9 -5
  24. data/lib/rack/content_type.rb +1 -1
  25. data/lib/rack/deflater.rb +68 -17
  26. data/lib/rack/directory.rb +68 -50
  27. data/lib/rack/etag.rb +21 -11
  28. data/lib/rack/events.rb +154 -0
  29. data/lib/rack/file.rb +101 -71
  30. data/lib/rack/handler/cgi.rb +15 -16
  31. data/lib/rack/handler/fastcgi.rb +17 -15
  32. data/lib/rack/handler/lsws.rb +11 -11
  33. data/lib/rack/handler/scgi.rb +20 -17
  34. data/lib/rack/handler/thin.rb +16 -4
  35. data/lib/rack/handler/webrick.rb +62 -22
  36. data/lib/rack/handler.rb +23 -18
  37. data/lib/rack/head.rb +19 -14
  38. data/lib/rack/lint.rb +251 -60
  39. data/lib/rack/lobster.rb +14 -9
  40. data/lib/rack/lock.rb +8 -10
  41. data/lib/rack/logger.rb +2 -2
  42. data/lib/rack/media_type.rb +38 -0
  43. data/lib/rack/method_override.rb +43 -0
  44. data/lib/rack/mime.rb +34 -5
  45. data/lib/rack/mock.rb +43 -37
  46. data/lib/rack/multipart/generator.rb +5 -5
  47. data/lib/rack/multipart/parser.rb +294 -112
  48. data/lib/rack/multipart/uploaded_file.rb +2 -3
  49. data/lib/rack/multipart.rb +36 -7
  50. data/lib/rack/null_logger.rb +37 -0
  51. data/lib/rack/query_parser.rb +192 -0
  52. data/lib/rack/recursive.rb +11 -10
  53. data/lib/rack/reloader.rb +2 -1
  54. data/lib/rack/request.rb +420 -272
  55. data/lib/rack/response.rb +131 -52
  56. data/lib/rack/rewindable_input.rb +1 -12
  57. data/lib/rack/runtime.rb +11 -6
  58. data/lib/rack/sendfile.rb +33 -16
  59. data/lib/rack/server.rb +94 -51
  60. data/lib/rack/session/abstract/id.rb +171 -113
  61. data/lib/rack/session/cookie.rb +61 -36
  62. data/lib/rack/session/memcache.rb +6 -6
  63. data/lib/rack/session/pool.rb +9 -12
  64. data/lib/rack/show_exceptions.rb +386 -0
  65. data/lib/rack/{showstatus.rb → show_status.rb} +7 -7
  66. data/lib/rack/static.rb +58 -36
  67. data/lib/rack/tempfile_reaper.rb +22 -0
  68. data/lib/rack/urlmap.rb +31 -15
  69. data/lib/rack/utils.rb +294 -252
  70. data/lib/rack.rb +73 -21
  71. data/rack.gemspec +10 -12
  72. data/test/builder/an_underscore_app.rb +5 -0
  73. data/test/builder/options.ru +1 -1
  74. data/test/cgi/test.fcgi +1 -0
  75. data/test/cgi/test.gz +0 -0
  76. data/test/helper.rb +34 -0
  77. data/test/multipart/filename_and_no_name +6 -0
  78. data/test/multipart/filename_with_encoded_words +7 -0
  79. data/test/multipart/filename_with_single_quote +7 -0
  80. data/test/multipart/invalid_character +6 -0
  81. data/test/multipart/quoted +15 -0
  82. data/test/multipart/rack-logo.png +0 -0
  83. data/test/multipart/unity3d_wwwform +11 -0
  84. data/test/registering_handler/rack/handler/registering_myself.rb +1 -1
  85. data/test/spec_auth_basic.rb +27 -19
  86. data/test/spec_auth_digest.rb +47 -46
  87. data/test/spec_body_proxy.rb +35 -19
  88. data/test/spec_builder.rb +69 -43
  89. data/test/spec_cascade.rb +24 -22
  90. data/test/spec_cgi.rb +49 -67
  91. data/test/spec_chunked.rb +50 -34
  92. data/test/spec_common_logger.rb +95 -0
  93. data/test/{spec_conditionalget.rb → spec_conditional_get.rb} +29 -28
  94. data/test/spec_config.rb +3 -2
  95. data/test/spec_content_length.rb +22 -22
  96. data/test/spec_content_type.rb +13 -12
  97. data/test/spec_deflater.rb +316 -138
  98. data/test/spec_directory.rb +87 -27
  99. data/test/spec_etag.rb +38 -28
  100. data/test/spec_events.rb +133 -0
  101. data/test/spec_fastcgi.rb +50 -72
  102. data/test/spec_file.rb +127 -76
  103. data/test/spec_handler.rb +20 -22
  104. data/test/spec_head.rb +16 -18
  105. data/test/spec_lint.rb +199 -199
  106. data/test/spec_lobster.rb +24 -23
  107. data/test/spec_lock.rb +72 -45
  108. data/test/spec_logger.rb +4 -3
  109. data/test/spec_media_type.rb +42 -0
  110. data/test/{spec_methodoverride.rb → spec_method_override.rb} +27 -16
  111. data/test/spec_mime.rb +51 -0
  112. data/test/spec_mock.rb +199 -126
  113. data/test/spec_multipart.rb +385 -148
  114. data/test/{spec_nulllogger.rb → spec_null_logger.rb} +7 -9
  115. data/test/spec_recursive.rb +17 -14
  116. data/test/spec_request.rb +897 -459
  117. data/test/spec_response.rb +289 -92
  118. data/test/spec_rewindable_input.rb +50 -40
  119. data/test/spec_runtime.rb +11 -10
  120. data/test/spec_sendfile.rb +69 -34
  121. data/test/spec_server.rb +106 -34
  122. data/test/spec_session_abstract_id.rb +17 -29
  123. data/test/spec_session_abstract_session_hash.rb +28 -0
  124. data/test/spec_session_cookie.rb +252 -171
  125. data/test/spec_session_memcache.rb +61 -62
  126. data/test/spec_session_pool.rb +45 -44
  127. data/test/spec_show_exceptions.rb +80 -0
  128. data/test/spec_show_status.rb +104 -0
  129. data/test/spec_static.rb +71 -32
  130. data/test/spec_tempfile_reaper.rb +64 -0
  131. data/test/spec_thin.rb +56 -46
  132. data/test/spec_urlmap.rb +93 -69
  133. data/test/spec_utils.rb +486 -298
  134. data/test/spec_version.rb +11 -0
  135. data/test/spec_webrick.rb +126 -61
  136. data/test/static/foo.html +1 -0
  137. data/test/testrequest.rb +1 -1
  138. data/test/unregistered_handler/rack/handler/unregistered.rb +1 -1
  139. data/test/unregistered_handler/rack/handler/unregistered_long_one.rb +1 -1
  140. metadata +65 -75
  141. data/KNOWN-ISSUES +0 -30
  142. data/lib/rack/backports/uri/common_18.rb +0 -56
  143. data/lib/rack/backports/uri/common_192.rb +0 -52
  144. data/lib/rack/backports/uri/common_193.rb +0 -29
  145. data/lib/rack/handler/evented_mongrel.rb +0 -8
  146. data/lib/rack/handler/mongrel.rb +0 -100
  147. data/lib/rack/handler/swiftiplied_mongrel.rb +0 -8
  148. data/lib/rack/methodoverride.rb +0 -33
  149. data/lib/rack/nulllogger.rb +0 -18
  150. data/lib/rack/showexceptions.rb +0 -378
  151. data/test/cgi/lighttpd.errors +0 -1
  152. data/test/spec_auth.rb +0 -57
  153. data/test/spec_commonlogger.rb +0 -57
  154. data/test/spec_mongrel.rb +0 -182
  155. data/test/spec_showexceptions.rb +0 -92
  156. data/test/spec_showstatus.rb +0 -84
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3c31ab2a14865deb3a2572ffb4e5041805e03b6
4
- data.tar.gz: 4c46599689ac47586891e494975865d24047c364
3
+ metadata.gz: f4e9c67e795c425f3e8faa0d0fe8d48daba757e5
4
+ data.tar.gz: bf8c0c20c6310e7bd53e8b20c8c4946b1205eb65
5
5
  SHA512:
6
- metadata.gz: 46969b1d5dd0866d2fe3bc407cd15d862ea6cdafb05260fa7c7f4fea7832c927e690de1a46e685ef0e52f0dafbbee19780fc164b27e672b2d598ff4ffd758565
7
- data.tar.gz: 3ad91dddc637cd4e7285d4e4dee55aab4fad2c3327cb0dfa8b6e10fbb3d00643bb0a83985f3e28f6eafb9c9439cb9295d4d8d9e62f1a6f54013e626a55e05e44
6
+ metadata.gz: 5540bc2b6de513db3c5c494e6e32229087fb20040c4670a8c2215a9ea5a04b010ac9b5143cc3703ab73df0417234a416e49370fb3eafc85bde1c569e521c0612
7
+ data.tar.gz: f2af8aa5ee53427248393dd707ca34428d18b064c3081a3db663cd0f1e6f35e4b18ce54f607f7cea3c56569ef2552240dd55d0c4ff7006e0e2ab80db3800a933
data/COPYING CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012 Christian Neukirchen <purl.org/net/chneukirchen>
1
+ Copyright (c) 2007-2016 Christian Neukirchen <purl.org/net/chneukirchen>
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to
data/HISTORY.md ADDED
@@ -0,0 +1,505 @@
1
+ Sun Dec 4 18:48:03 2015 Jeremy Daer <jeremydaer@gmail.com>
2
+
3
+ * First-party "SameSite" cookies. Browsers omit SameSite cookies
4
+ from third-party requests, closing the door on many CSRF attacks.
5
+
6
+ Pass `same_site: true` (or `:strict`) to enable:
7
+ response.set_cookie 'foo', value: 'bar', same_site: true
8
+ or `same_site: :lax` to use Lax enforcement:
9
+ response.set_cookie 'foo', value: 'bar', same_site: :lax
10
+
11
+ Based on version 7 of the Same-site Cookies internet draft:
12
+ https://tools.ietf.org/html/draft-west-first-party-cookies-07
13
+
14
+ Thanks to Ben Toews (@mastahyeti) and Bob Long (@bobjflong) for
15
+ updating to drafts 5 and 7.
16
+
17
+ Tue Nov 3 16:17:26 2015 Aaron Patterson <tenderlove@ruby-lang.org>
18
+
19
+ * Add `Rack::Events` middleware for adding event based middleware:
20
+ middleware that does not care about the response body, but only cares
21
+ about doing work at particular points in the request / response
22
+ lifecycle.
23
+
24
+ Thu Oct 8 14:58:46 2015 Aaron Patterson <tenderlove@ruby-lang.org>
25
+
26
+ * Add `Rack::Request#authority` to calculate the authority under which
27
+ the response is being made (this will be handy for h2 pushes).
28
+
29
+ Tue Oct 6 13:19:04 2015 Aaron Patterson <tenderlove@ruby-lang.org>
30
+
31
+ * Add `Rack::Response::Helpers#cache_control` and `cache_control=`.
32
+ Use this for setting cache control headers on your response objects.
33
+
34
+ Tue Oct 6 13:12:21 2015 Aaron Patterson <tenderlove@ruby-lang.org>
35
+
36
+ * Add `Rack::Response::Helpers#etag` and `etag=`. Use this for
37
+ setting etag values on the response.
38
+
39
+ Sun Oct 3 18:25:03 2015 Jeremy Daer <jeremydaer@gmail.com>
40
+
41
+ * Introduce `Rack::Response::Helpers#add_header` to add a value to a
42
+ multi-valued response header. Implemented in terms of other
43
+ `Response#*_header` methods, so it's available to any response-like
44
+ class that includes the `Helpers` module.
45
+
46
+ * Add `Rack::Request#add_header` to match.
47
+
48
+ Fri Sep 4 18:34:53 2015 Aaron Patterson <tenderlove@ruby-lang.org>
49
+
50
+ * `Rack::Session::Abstract::ID` IS DEPRECATED. Please switch to
51
+ `Rack::Session::Abstract::Persisted`.
52
+ `Rack::Session::Abstract::Persisted` uses a request object rather than
53
+ the `env` hash.
54
+
55
+ Fri Sep 4 17:32:12 2015 Aaron Patterson <tenderlove@ruby-lang.org>
56
+
57
+ * Pull `ENV` access inside the request object in to a module. This
58
+ will help with legacy Request objects that are ENV based but don't
59
+ want to inherit from Rack::Request
60
+
61
+ Fri Sep 4 16:09:11 2015 Aaron Patterson <tenderlove@ruby-lang.org>
62
+
63
+ * Move most methods on the `Rack::Request` to a module
64
+ `Rack::Request::Helpers` and use public API to get values from the
65
+ request object. This enables users to mix `Rack::Request::Helpers` in
66
+ to their own objects so they can implement
67
+ `(get|set|fetch|each)_header` as they see fit (for example a proxy
68
+ object).
69
+
70
+ Fri Sep 4 14:15:32 2015 Aaron Patterson <tenderlove@ruby-lang.org>
71
+
72
+ * Files and directories with + in the name are served correctly.
73
+ Rather than unescaping paths like a form, we unescape with a URI
74
+ parser using `Rack::Utils.unescape_path`. Fixes #265
75
+
76
+ Thu Aug 27 15:43:48 2015 Aaron Patterson <tenderlove@ruby-lang.org>
77
+
78
+ * Tempfiles are automatically closed in the case that there were too
79
+ many posted.
80
+
81
+ Thu Aug 27 11:00:03 2015 Aaron Patterson <tenderlove@ruby-lang.org>
82
+
83
+ * Added methods for manipulating response headers that don't assume
84
+ they're stored as a Hash. Response-like classes may include the
85
+ Rack::Response::Helpers module if they define these methods:
86
+
87
+ * Rack::Response#has_header?
88
+ * Rack::Response#get_header
89
+ * Rack::Response#set_header
90
+ * Rack::Response#delete_header
91
+
92
+ Mon Aug 24 18:05:23 2015 Aaron Patterson <tenderlove@ruby-lang.org>
93
+
94
+ * Introduce Util.get_byte_ranges that will parse the value of the
95
+ HTTP_RANGE string passed to it without depending on the `env` hash.
96
+ `byte_ranges` is deprecated in favor of this method.
97
+
98
+ Sat Aug 22 17:49:49 2015 Aaron Patterson <tenderlove@ruby-lang.org>
99
+
100
+ * Change Session internals to use Request objects for looking up
101
+ session information. This allows us to only allocate one request
102
+ object when dealing with session objects (rather than doing it every
103
+ time we need to manipulate cookies, etc).
104
+
105
+ Fri Aug 21 16:30:51 2015 Aaron Patterson <tenderlove@ruby-lang.org>
106
+
107
+ * Add `Rack::Request#initialize_copy` so that the env is duped when
108
+ the request gets duped.
109
+
110
+ Thu Aug 20 16:20:58 2015 Aaron Patterson <tenderlove@ruby-lang.org>
111
+
112
+ * Added methods for manipulating request specific data. This includes
113
+ data set as CGI parameters, and just any arbitrary data the user wants
114
+ to associate with a particular request. New methods:
115
+
116
+ * Rack::Request#has_header?
117
+ * Rack::Request#get_header
118
+ * Rack::Request#fetch_header
119
+ * Rack::Request#each_header
120
+ * Rack::Request#set_header
121
+ * Rack::Request#delete_header
122
+
123
+ Thu Jun 18 16:00:05 2015 Aaron Patterson <tenderlove@ruby-lang.org>
124
+
125
+ * lib/rack/utils.rb: add a method for constructing "delete" cookie
126
+ headers. This allows us to construct cookie headers without depending
127
+ on the side effects of mutating a hash.
128
+
129
+ Fri Jun 12 11:37:41 2015 Aaron Patterson <tenderlove@ruby-lang.org>
130
+
131
+ * Prevent extremely deep parameters from being parsed. CVE-2015-3225
132
+
133
+ ### May 6th, 2015, Thirty seventh public release 1.6.1
134
+ - Fix CVE-2014-9490, denial of service attack in OkJson ([8cd610](https://github.com/rack/rack/commit/8cd61062954f70e0a03e2855704e95ff4bdd4f6e))
135
+ - Use a monotonic time for Rack::Runtime, if available ([d170b2](https://github.com/rack/rack/commit/d170b2363c949dce60871f9d5a6bfc83da2bedb5))
136
+ - RACK_MULTIPART_LIMIT changed to RACK_MULTIPART_PART_LIMIT (RACK_MULTIPART_LIMIT is deprecated and will be removed in 1.7.0) ([c096c5](https://github.com/rack/rack/commit/c096c50c00230d8eee13ad5f79ad027d9a3f3ca9))
137
+ - See the full [git history](https://github.com/rack/rack/compare/1.6.0...1.6.1) and [milestone tag](https://github.com/rack/rack/issues?utf8=%E2%9C%93&q=milestone%3A%22Rack+1.6%22)
138
+
139
+ ### May 6th, 2015, Thirty seventh public release 1.5.3
140
+ - Fix CVE-2014-9490, denial of service attack in OkJson ([99f725](https://github.com/rack/rack/commit/99f725b583b357376ffbb7b3b042c5daa3106ad6))
141
+ - Backport bug fixes to 1.5 series ([#585](https://github.com/rack/rack/pull/585), [#711](https://github.com/rack/rack/pull/711), [#756](https://github.com/rack/rack/pull/756))
142
+ - See the full [git history](https://github.com/rack/rack/compare/1.5.2...1.5.3) and [milestone tag](https://github.com/rack/rack/issues?utf8=%E2%9C%93&q=milestone%3A%22Rack+1.5.3%22)
143
+
144
+ ### December 18th, 2014, Thirty sixth public release 1.6.0
145
+ - Response#unauthorized? helper ([#580](https://github.com/rack/rack/pull/580))
146
+ - Deflater now accepts an options hash to control compression on a per-request level ([#457](https://github.com/rack/rack/pull/457))
147
+ - Builder#warmup method for app preloading ([#617](https://github.com/rack/rack/pull/617))
148
+ - Request#accept_language method to extract HTTP_ACCEPT_LANGUAGE ([#623](https://github.com/rack/rack/pull/623))
149
+ - Add quiet mode of rack server, rackup --quiet ([#674](https://github.com/rack/rack/pull/674))
150
+ - Update HTTP Status Codes to RFC 7231 ([#754](https://github.com/rack/rack/pull/754))
151
+ - Less strict header name validation according to [RFC 2616](https://tools.ietf.org/html/rfc2616) ([#399](https://github.com/rack/rack/pull/399))
152
+ - SPEC updated to specify headers conform to RFC7230 specification ([6839fc](https://github.com/rack/rack/commit/6839fc203339f021cb3267fb09cba89410f086e9))
153
+ - Etag correctly marks etags as weak ([#681](https://github.com/rack/rack/issues/681))
154
+ - Request#port supports multiple x-http-forwarded-proto values ([#669](https://github.com/rack/rack/pull/669))
155
+ - Utils#multipart_part_limit configures the maximum number of parts a request can contain ([#684](https://github.com/rack/rack/pull/684))
156
+ - Default host to localhost when in development mode ([#514](https://github.com/rack/rack/pull/514))
157
+ - Various bugfixes and performance improvements (See the full [git history](https://github.com/rack/rack/compare/1.5.2...1.6.0) and [milestone tag](https://github.com/rack/rack/issues?utf8=%E2%9C%93&q=milestone%3A%22Rack+1.6%22))
158
+
159
+ ### February 7th, 2013, Thirty fifth public release 1.5.2
160
+ - Fix CVE-2013-0263, timing attack against Rack::Session::Cookie
161
+ - Fix CVE-2013-0262, symlink path traversal in Rack::File
162
+ - Add various methods to Session for enhanced Rails compatibility
163
+ - Request#trusted_proxy? now only matches whole stirngs
164
+ - Add JSON cookie coder, to be default in Rack 1.6+ due to security concerns
165
+ - URLMap host matching in environments that don't set the Host header fixed
166
+ - Fix a race condition that could result in overwritten pidfiles
167
+ - Various documentation additions
168
+
169
+ ### February 7th, 2013, Thirty fifth public release 1.4.5
170
+ - Fix CVE-2013-0263, timing attack against Rack::Session::Cookie
171
+ - Fix CVE-2013-0262, symlink path traversal in Rack::File
172
+
173
+ ### February 7th, Thirty fifth public release 1.1.6, 1.2.8, 1.3.10
174
+ - Fix CVE-2013-0263, timing attack against Rack::Session::Cookie
175
+
176
+ ### January 28th, 2013: Thirty fourth public release 1.5.1
177
+ - Rack::Lint check_hijack now conforms to other parts of SPEC
178
+ - Added hash-like methods to Abstract::ID::SessionHash for compatibility
179
+ - Various documentation corrections
180
+
181
+ ### January 21st, 2013: Thirty third public release 1.5.0
182
+ - Introduced hijack SPEC, for before-response and after-response hijacking
183
+ - SessionHash is no longer a Hash subclass
184
+ - Rack::File cache_control parameter is removed, in place of headers options
185
+ - Rack::Auth::AbstractRequest#scheme now yields strings, not symbols
186
+ - Rack::Utils cookie functions now format expires in RFC 2822 format
187
+ - Rack::File now has a default mime type
188
+ - rackup -b 'run Rack::File.new(".")', option provides command line configs
189
+ - Rack::Deflater will no longer double encode bodies
190
+ - Rack::Mime#match? provides convenience for Accept header matching
191
+ - Rack::Utils#q_values provides splitting for Accept headers
192
+ - Rack::Utils#best_q_match provides a helper for Accept headers
193
+ - Rack::Handler.pick provides convenience for finding available servers
194
+ - Puma added to the list of default servers (preferred over Webrick)
195
+ - Various middleware now correctly close body when replacing it
196
+ - Rack::Request#params is no longer persistent with only GET params
197
+ - Rack::Request#update_param and #delete_param provide persistent operations
198
+ - Rack::Request#trusted_proxy? now returns true for local unix sockets
199
+ - Rack::Response no longer forces Content-Types
200
+ - Rack::Sendfile provides local mapping configuration options
201
+ - Rack::Utils#rfc2109 provides old netscape style time output
202
+ - Updated HTTP status codes
203
+ - Ruby 1.8.6 likely no longer passes tests, and is no longer fully supported
204
+
205
+ ### January 13th, 2013: Thirty second public release 1.4.4, 1.3.9, 1.2.7, 1.1.5
206
+ - [SEC] Rack::Auth::AbstractRequest no longer symbolizes arbitrary strings
207
+ - Fixed erroneous test case in the 1.3.x series
208
+
209
+ ### January 7th, 2013: Thirty first public release 1.4.3
210
+ - Security: Prevent unbounded reads in large multipart boundaries
211
+
212
+ ### January 7th, 2013: Thirtieth public release 1.3.8
213
+ - Security: Prevent unbounded reads in large multipart boundaries
214
+
215
+ ### January 6th, 2013: Twenty ninth public release 1.4.2
216
+ - Add warnings when users do not provide a session secret
217
+ - Fix parsing performance for unquoted filenames
218
+ - Updated URI backports
219
+ - Fix URI backport version matching, and silence constant warnings
220
+ - Correct parameter parsing with empty values
221
+ - Correct rackup '-I' flag, to allow multiple uses
222
+ - Correct rackup pidfile handling
223
+ - Report rackup line numbers correctly
224
+ - Fix request loops caused by non-stale nonces with time limits
225
+ - Fix reloader on Windows
226
+ - Prevent infinite recursions from Response#to_ary
227
+ - Various middleware better conforms to the body close specification
228
+ - Updated language for the body close specification
229
+ - Additional notes regarding ECMA escape compatibility issues
230
+ - Fix the parsing of multiple ranges in range headers
231
+ - Prevent errors from empty parameter keys
232
+ - Added PATCH verb to Rack::Request
233
+ - Various documentation updates
234
+ - Fix session merge semantics (fixes rack-test)
235
+ - Rack::Static :index can now handle multiple directories
236
+ - All tests now utilize Rack::Lint (special thanks to Lars Gierth)
237
+ - Rack::File cache_control parameter is now deprecated, and removed by 1.5
238
+ - Correct Rack::Directory script name escaping
239
+ - Rack::Static supports header rules for sophisticated configurations
240
+ - Multipart parsing now works without a Content-Length header
241
+ - New logos courtesy of Zachary Scott!
242
+ - Rack::BodyProxy now explicitly defines #each, useful for C extensions
243
+ - Cookies that are not URI escaped no longer cause exceptions
244
+
245
+ ### January 6th, 2013: Twenty eighth public release 1.3.7
246
+ - Add warnings when users do not provide a session secret
247
+ - Fix parsing performance for unquoted filenames
248
+ - Updated URI backports
249
+ - Fix URI backport version matching, and silence constant warnings
250
+ - Correct parameter parsing with empty values
251
+ - Correct rackup '-I' flag, to allow multiple uses
252
+ - Correct rackup pidfile handling
253
+ - Report rackup line numbers correctly
254
+ - Fix request loops caused by non-stale nonces with time limits
255
+ - Fix reloader on Windows
256
+ - Prevent infinite recursions from Response#to_ary
257
+ - Various middleware better conforms to the body close specification
258
+ - Updated language for the body close specification
259
+ - Additional notes regarding ECMA escape compatibility issues
260
+ - Fix the parsing of multiple ranges in range headers
261
+
262
+ ### January 6th, 2013: Twenty seventh public release 1.2.6
263
+ - Add warnings when users do not provide a session secret
264
+ - Fix parsing performance for unquoted filenames
265
+
266
+ ### January 6th, 2013: Twenty sixth public release 1.1.4
267
+ - Add warnings when users do not provide a session secret
268
+
269
+ ### January 22nd, 2012: Twenty fifth public release 1.4.1
270
+ - Alter the keyspace limit calculations to reduce issues with nested params
271
+ - Add a workaround for multipart parsing where files contain unescaped "%"
272
+ - Added Rack::Response::Helpers#method_not_allowed? (code 405)
273
+ - Rack::File now returns 404 for illegal directory traversals
274
+ - Rack::File now returns 405 for illegal methods (non HEAD/GET)
275
+ - Rack::Cascade now catches 405 by default, as well as 404
276
+ - Cookies missing '--' no longer cause an exception to be raised
277
+ - Various style changes and documentation spelling errors
278
+ - Rack::BodyProxy always ensures to execute its block
279
+ - Additional test coverage around cookies and secrets
280
+ - Rack::Session::Cookie can now be supplied either secret or old_secret
281
+ - Tests are no longer dependent on set order
282
+ - Rack::Static no longer defaults to serving index files
283
+ - Rack.release was fixed
284
+
285
+ ### December 28th, 2011: Twenty fourth public release 1.4.0
286
+ - Ruby 1.8.6 support has officially been dropped. Not all tests pass.
287
+ - Raise sane error messages for broken config.ru
288
+ - Allow combining run and map in a config.ru
289
+ - Rack::ContentType will not set Content-Type for responses without a body
290
+ - Status code 205 does not send a response body
291
+ - Rack::Response::Helpers will not rely on instance variables
292
+ - Rack::Utils.build_query no longer outputs '=' for nil query values
293
+ - Various mime types added
294
+ - Rack::MockRequest now supports HEAD
295
+ - Rack::Directory now supports files that contain RFC3986 reserved chars
296
+ - Rack::File now only supports GET and HEAD requests
297
+ - Rack::Server#start now passes the block to Rack::Handler::<h>#run
298
+ - Rack::Static now supports an index option
299
+ - Added the Teapot status code
300
+ - rackup now defaults to Thin instead of Mongrel (if installed)
301
+ - Support added for HTTP_X_FORWARDED_SCHEME
302
+ - Numerous bug fixes, including many fixes for new and alternate rubies
303
+
304
+ ### December 28th, 2011: Twenty first public release: 1.1.3.
305
+ - Security fix. http://www.ocert.org/advisories/ocert-2011-003.html
306
+ Further information here: http://jruby.org/2011/12/27/jruby-1-6-5-1
307
+
308
+ ### October 17, 2011: Twentieth public release 1.3.5
309
+ - Fix annoying warnings caused by the backport in 1.3.4
310
+
311
+ ### October 1, 2011: Nineteenth public release 1.3.4
312
+ - Backport security fix from 1.9.3, also fixes some roundtrip issues in URI
313
+ - Small documentation update
314
+ - Fix an issue where BodyProxy could cause an infinite recursion
315
+ - Add some supporting files for travis-ci
316
+
317
+ ### September 16, 2011: Eighteenth public release 1.2.4
318
+ - Fix a bug with MRI regex engine to prevent XSS by malformed unicode
319
+
320
+ ### September 16, 2011: Seventeenth public release 1.3.3
321
+ - Fix bug with broken query parameters in Rack::ShowExceptions
322
+ - Rack::Request#cookies no longer swallows exceptions on broken input
323
+ - Prevents XSS attacks enabled by bug in Ruby 1.8's regexp engine
324
+ - Rack::ConditionalGet handles broken If-Modified-Since helpers
325
+
326
+ ### July 16, 2011: Sixteenth public release 1.3.2
327
+ - Fix for Rails and rack-test, Rack::Utils#escape calls to_s
328
+
329
+ ### July 13, 2011: Fifteenth public release 1.3.1
330
+ - Fix 1.9.1 support
331
+ - Fix JRuby support
332
+ - Properly handle $KCODE in Rack::Utils.escape
333
+ - Make method_missing/respond_to behavior consistent for Rack::Lock,
334
+ Rack::Auth::Digest::Request and Rack::Multipart::UploadedFile
335
+ - Reenable passing rack.session to session middleware
336
+ - Rack::CommonLogger handles streaming responses correctly
337
+ - Rack::MockResponse calls close on the body object
338
+ - Fix a DOS vector from MRI stdlib backport
339
+
340
+ ### May 22nd, 2011: Fourteenth public release 1.2.3
341
+ - Pulled in relevant bug fixes from 1.3
342
+ - Fixed 1.8.6 support
343
+
344
+ ### May 22nd, 2011: Thirteenth public release 1.3.0
345
+ - Various performance optimizations
346
+ - Various multipart fixes
347
+ - Various multipart refactors
348
+ - Infinite loop fix for multipart
349
+ - Test coverage for Rack::Server returns
350
+ - Allow files with '..', but not path components that are '..'
351
+ - rackup accepts handler-specific options on the command line
352
+ - Request#params no longer merges POST into GET (but returns the same)
353
+ - Use URI.encode_www_form_component instead. Use core methods for escaping.
354
+ - Allow multi-line comments in the config file
355
+ - Bug L#94 reported by Nikolai Lugovoi, query parameter unescaping.
356
+ - Rack::Response now deletes Content-Length when appropriate
357
+ - Rack::Deflater now supports streaming
358
+ - Improved Rack::Handler loading and searching
359
+ - Support for the PATCH verb
360
+ - env['rack.session.options'] now contains session options
361
+ - Cookies respect renew
362
+ - Session middleware uses SecureRandom.hex
363
+
364
+ ### March 13th, 2011: Twelfth public release 1.2.2/1.1.2.
365
+ - Security fix in Rack::Auth::Digest::MD5: when authenticator
366
+ returned nil, permission was granted on empty password.
367
+
368
+ ### June 15th, 2010: Eleventh public release 1.2.1.
369
+ - Make CGI handler rewindable
370
+ - Rename spec/ to test/ to not conflict with SPEC on lesser
371
+ operating systems
372
+
373
+ ### June 13th, 2010: Tenth public release 1.2.0.
374
+ - Removed Camping adapter: Camping 2.0 supports Rack as-is
375
+ - Removed parsing of quoted values
376
+ - Add Request.trace? and Request.options?
377
+ - Add mime-type for .webm and .htc
378
+ - Fix HTTP_X_FORWARDED_FOR
379
+ - Various multipart fixes
380
+ - Switch test suite to bacon
381
+
382
+ ### January 3rd, 2010: Ninth public release 1.1.0.
383
+ - Moved Auth::OpenID to rack-contrib.
384
+ - SPEC change that relaxes Lint slightly to allow subclasses of the
385
+ required types
386
+ - SPEC change to document rack.input binary mode in greator detail
387
+ - SPEC define optional rack.logger specification
388
+ - File servers support X-Cascade header
389
+ - Imported Config middleware
390
+ - Imported ETag middleware
391
+ - Imported Runtime middleware
392
+ - Imported Sendfile middleware
393
+ - New Logger and NullLogger middlewares
394
+ - Added mime type for .ogv and .manifest.
395
+ - Don't squeeze PATH_INFO slashes
396
+ - Use Content-Type to determine POST params parsing
397
+ - Update Rack::Utils::HTTP_STATUS_CODES hash
398
+ - Add status code lookup utility
399
+ - Response should call #to_i on the status
400
+ - Add Request#user_agent
401
+ - Request#host knows about forwared host
402
+ - Return an empty string for Request#host if HTTP_HOST and
403
+ SERVER_NAME are both missing
404
+ - Allow MockRequest to accept hash params
405
+ - Optimizations to HeaderHash
406
+ - Refactored rackup into Rack::Server
407
+ - Added Utils.build_nested_query to complement Utils.parse_nested_query
408
+ - Added Utils::Multipart.build_multipart to complement
409
+ Utils::Multipart.parse_multipart
410
+ - Extracted set and delete cookie helpers into Utils so they can be
411
+ used outside Response
412
+ - Extract parse_query and parse_multipart in Request so subclasses
413
+ can change their behavior
414
+ - Enforce binary encoding in RewindableInput
415
+ - Set correct external_encoding for handlers that don't use RewindableInput
416
+
417
+ ### October 18th, 2009: Eighth public release 1.0.1.
418
+ - Bump remainder of rack.versions.
419
+ - Support the pure Ruby FCGI implementation.
420
+ - Fix for form names containing "=": split first then unescape components
421
+ - Fixes the handling of the filename parameter with semicolons in names.
422
+ - Add anchor to nested params parsing regexp to prevent stack overflows
423
+ - Use more compatible gzip write api instead of "<<".
424
+ - Make sure that Reloader doesn't break when executed via ruby -e
425
+ - Make sure WEBrick respects the :Host option
426
+ - Many Ruby 1.9 fixes.
427
+
428
+ ### April 25th, 2009: Seventh public release 1.0.0.
429
+ - SPEC change: Rack::VERSION has been pushed to [1,0].
430
+ - SPEC change: header values must be Strings now, split on "\n".
431
+ - SPEC change: Content-Length can be missing, in this case chunked transfer
432
+ encoding is used.
433
+ - SPEC change: rack.input must be rewindable and support reading into
434
+ a buffer, wrap with Rack::RewindableInput if it isn't.
435
+ - SPEC change: rack.session is now specified.
436
+ - SPEC change: Bodies can now additionally respond to #to_path with
437
+ a filename to be served.
438
+ - NOTE: String bodies break in 1.9, use an Array consisting of a
439
+ single String instead.
440
+ - New middleware Rack::Lock.
441
+ - New middleware Rack::ContentType.
442
+ - Rack::Reloader has been rewritten.
443
+ - Major update to Rack::Auth::OpenID.
444
+ - Support for nested parameter parsing in Rack::Response.
445
+ - Support for redirects in Rack::Response.
446
+ - HttpOnly cookie support in Rack::Response.
447
+ - The Rakefile has been rewritten.
448
+ - Many bugfixes and small improvements.
449
+
450
+ ### January 9th, 2009: Sixth public release 0.9.1.
451
+ - Fix directory traversal exploits in Rack::File and Rack::Directory.
452
+
453
+ ### January 6th, 2009: Fifth public release 0.9.
454
+ - Rack is now managed by the Rack Core Team.
455
+ - Rack::Lint is stricter and follows the HTTP RFCs more closely.
456
+ - Added ConditionalGet middleware.
457
+ - Added ContentLength middleware.
458
+ - Added Deflater middleware.
459
+ - Added Head middleware.
460
+ - Added MethodOverride middleware.
461
+ - Rack::Mime now provides popular MIME-types and their extension.
462
+ - Mongrel Header now streams.
463
+ - Added Thin handler.
464
+ - Official support for swiftiplied Mongrel.
465
+ - Secure cookies.
466
+ - Made HeaderHash case-preserving.
467
+ - Many bugfixes and small improvements.
468
+
469
+ ### August 21st, 2008: Fourth public release 0.4.
470
+ - New middleware, Rack::Deflater, by Christoffer Sawicki.
471
+ - OpenID authentication now needs ruby-openid 2.
472
+ - New Memcache sessions, by blink.
473
+ - Explicit EventedMongrel handler, by Joshua Peek <josh@joshpeek.com>
474
+ - Rack::Reloader is not loaded in rackup development mode.
475
+ - rackup can daemonize with -D.
476
+ - Many bugfixes, especially for pool sessions, URLMap, thread safety
477
+ and tempfile handling.
478
+ - Improved tests.
479
+ - Rack moved to Git.
480
+
481
+ ### February 26th, 2008: Third public release 0.3.
482
+ - LiteSpeed handler, by Adrian Madrid.
483
+ - SCGI handler, by Jeremy Evans.
484
+ - Pool sessions, by blink.
485
+ - OpenID authentication, by blink.
486
+ - :Port and :File options for opening FastCGI sockets, by blink.
487
+ - Last-Modified HTTP header for Rack::File, by blink.
488
+ - Rack::Builder#use now accepts blocks, by Corey Jewett.
489
+ (See example/protectedlobster.ru)
490
+ - HTTP status 201 can contain a Content-Type and a body now.
491
+ - Many bugfixes, especially related to Cookie handling.
492
+
493
+ ### May 16th, 2007: Second public release 0.2.
494
+ - HTTP Basic authentication.
495
+ - Cookie Sessions.
496
+ - Static file handler.
497
+ - Improved Rack::Request.
498
+ - Improved Rack::Response.
499
+ - Added Rack::ShowStatus, for better default error messages.
500
+ - Bug fixes in the Camping adapter.
501
+ - Removed Rails adapter, was too alpha.
502
+
503
+ ### March 3rd, 2007: First public release 0.1.
504
+
505
+ /* vim: set filetype=changelog */