[#73707] [Ruby trunk Misc#12004] Code of Conduct — hanmac@...
Issue #12004 has been updated by Hans Mackowiak.
3 messages
2016/02/05
[#73730] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/07
[#73746] [Ruby trunk Feature#12034] RegExp does not respect file encoding directive — nobu@...
Issue #12034 has been updated by Nobuyoshi Nakada.
3 messages
2016/02/09
[#73919] [Ruby trunk Feature#11262] Make more objects behave like "Functions" — Ruby-Lang@...
Issue #11262 has been updated by J旦rg W Mittag.
3 messages
2016/02/22
[#74019] [Ruby trunk Bug#12103][Rejected] ruby process hangs while executing regular expression. — duerst@...
Issue #12103 has been updated by Martin D端rst.
3 messages
2016/02/27
[ruby-core:73713] Re: [Ruby trunk Bug#12055] `NET::HTTPResponse` is not deflating responses with custom `Content-Range` header
From:
Matthew Kerwin <matthew@...>
Date:
2016-02-05 13:49:06 UTC
List:
ruby-core #73713
On 05/02/2016 11:06 PM, <ggcampinho@gmail.com> wrote: > > Issue #12055 has been reported by Glauber Campinho. > > The RFC 7233, section 4.2 describes the the possibility of using a custom `Content-Range` header and not only for bytes [[ https://tools.ietf.org/html/rfc7233#section-4.2]]. Although, the `NET::HTTPResponse` considers that `Content-Range` present on the response during the inflating is in `bytes` unit. > > This issue is caused by this line [[ https://github.com/ruby/ruby/blob/trunk/lib/net/http/response.rb#L252]]. In the patch I changed it to check if the `Content-Range` unit is `bytes` and there is a test to reproduce the error. > I don't see a problem with the existing code. No matter what range unit is used, if the response body is not the complete resource representation, it should not be inflated, because it's not the complete gzip/etc. stream. If your example 'item' unit is applicable to a content-type that allows its 'items' to be individually compressed, that compression is a property of the content-type itself, not a content-encoding of the resource as a whole. Conversely, it's hard to reason about a range of 'items' inside a gzip-encoded resource -- how do I transmit just the third line of foo.csv.gz, for example? If you want to transport individual chunks compressed, even though the content-type doesn't necessarily support compressed chunks, you should look at transfer encoding. Incidentally, Content-Range does not apply to 200 Ok responses, you should use 206 Partial Content. Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>