summary refs log tree commit
DateCommit message (Collapse)
2016-12-14Revert "Add 205 Reset Content to the list of statuses without a message body" rfc7231-sec6.3.6-205
RFC 7231, section 6.3.5 gives three possible options for what a server MUST do when sending a 205 status code: > Since the 205 status code implies that no additional content will be > provided, a server MUST NOT generate a payload in a 205 response. In > other words, a server MUST do one of the following for a 205 > response: a) indicate a zero-length body for the response by > including a Content-Length header field with a value of 0; b) > indicate a zero-length payload for the response by including a > Transfer-Encoding header field with a value of chunked and a message > body consisting of a single chunk of zero-length; or, c) close the > connection immediately after sending the blank line terminating the > header section. rack itself has no control over c), but should leave options a) and b) available for middleware and application authors. https://tools.ietf.org/html/rfc7231#section-6.3.6 The older RFC 2616 text was vague and not specific about what a server should do: https://tools.ietf.org/html/rfc2616#section-10.2.6 I noticed this from Plack: https://metacpan.org/pod/Plack::Util This reverts commit 2c5b076aaba6c83ffce8c6c2b5c49085c1abb5a5.
2016-12-08Merge pull request #1135 from tonytonyjan/patch-rdoc
Add rdoc dependency
2016-12-08add rdoc dependency
2016-12-07Merge pull request #1133 from tonytonyjan/patch-typo
fix typo
2016-12-07Merge pull request #1132 from tonytonyjan/patch
typo fix
2016-12-07fix typo
2016-12-06typo fix
2016-12-05Merge pull request #1130 from tonytonyjan/patch
To support minitest 6 and prevent error message from minitest 5.
2016-12-05To support minitest 6 and prevent error ouput in minitest 5, use ↵
`must_be_nil` if expecting nil.
2016-11-28Merge pull request #1128 from dijonkitchen/patch-1
Change NEWS file into Markdown file extension
2016-11-27Change NEWS file into Markdown file extension
This way GitHub will render it correctly in browser.
2016-11-25Merge pull request #973 from mwpastore/master
Update example use of Rack::Deflater
2016-11-10Merge pull request #1080 from sophiedeziel/master
Prevent exception caused by a race condition on multi-threaded servers
2016-11-04webrick: detect partial hijack without hash headers
Response headers need not be a hash according to SPEC, so grab the io_lambda the first time we iterate through the headers and avoid an extra hash lookup.
2016-11-04Merge pull request #1125 from yannvanhalewyn/improve-fetch-on-session-hash
Improve and test SessionHash#fetch
2016-11-02Add test for fetching unknown keys without defaults
2016-10-24Improve and test SessionHash#fetch.
2016-09-28Merge pull request #1115 from Shopify/fix-multipart-parsing-with-null-byte
Handle NULL byte in multipart file name
2016-09-28Handle NULL byte in multipart file name
2016-09-27updating author / email
2016-09-10Merge pull request #1110 from kirs/patch-1
Freeze default session options
2016-09-09Freeze default session options
Some code in my app have been accidentally mutating the default session options, which broke some session behaviour. It wasn't easy to track that down, so I'd like to suggest that we freeze this hash to avoid mutation.
2016-06-30bumping to 2.0.1 to work around Rack 2.0.1
2016-06-30Merge pull request #1011 from mperham/patch-1 2.0.0
Remove json gem
2016-06-30bump version to 2.0.0
2016-06-30Merge pull request #1089 from matthewd/params-new-array
Try harder when deciding whether to add a new array element
2016-06-24Merge pull request #1030 from gjtorikian/dont-break-on-nil-header
Dont break on `nil` Authorization header
2016-06-23Try harder when deciding whether to add a new array element
Only move to a new entry if the end key is taken; checking only the top-level key is insufficient.
2016-06-14require fileutils
2016-06-14use FileUtils.rm_f instead of File.delete to prevent exceptions
2016-06-09prevent exception caused by a race condition on multi-threaded server like Puma
2016-05-19Merge pull request #1072 from frodsan/remove-unused-var
Remove unused variable.
2016-05-19Remove unused variable.
Ref: https://github.com/rack/rack/commit/812ac75b327c9f3d6ff5074def9721bf6f19e1de#commitcomment-425374
2016-05-06bumping version 2.0.0.rc1
2016-05-05Merge pull request #1056 from maclover7/request-helpers
Move Rack::Request convienence methods to Helpers
2016-05-05use sha256 for ETag generation
Make ETags great again. Switch for more secure etag generation.
2016-05-04Move Rack::Request #values_at to Helpers
2016-05-04Merge pull request #1065 from jkowens/fix-null-byte
Return 400 if Rack::File or Rack::Directory path contains null byte
2016-05-04Merge pull request #1066 from jkowens/head-aware
Omit response body for HEAD requests to Rack::Directory
2016-05-04Merge pull request #1069 from sgrif/sg-deprecate-params-accessors
Move `Request#[]` and `Request#[]=` to `Helpers` and deprecate them
2016-05-04Merge pull request #1068 from gearnode/bump-ruby-version-for-ci
Use last version of MRI Ruby with CI (travis)
2016-05-04Move `Request#[]` and `Request#[]=` to `Helpers` and deprecate them
2016-05-04Add last version of ruby for running ci
2016-05-03Omit response body for HEAD requests to Rack::Directory
2016-05-03Return 400 status if request for static file includes null byte
File paths cannot contain null byte characters and methods that do path operations such as Rack::Utils#clean_path_info will raise unwanted errors.
2016-04-29Tests: check exitstatus outside the conditional as a workaround
`$?` may be `nil` here, some quirk on 2.4.0-dev. Split it up to fix. Signed-off-by: Jeremy Daer <jeremydaer@gmail.com>
2016-04-28HEAD requests to Rack::File now omit the response body.
Fixes #945. Signed-off-by: Jeremy Daer <jeremydaer@gmail.com>
2016-04-24CI: fix missing bundler on some JRuby versions by explicitly installing it
2016-04-24Merge pull request #1063 from tgrindinger/fix-webrick-tests
improve fragile webrick test Awkward busy-wait loop, but sufficient to build on.
2016-04-24improve fragile webrick test