Skip to content

Make Net::HTTPHeader#content_range return nil on non-byte units - #63

Merged
nobu merged 1 commit into
ruby:masterfrom
nobu:unknown-content-range-unit
Jun 16, 2022
Merged

nobu merged 1 commit into
ruby:masterfrom
nobu:unknown-content-range-unit

Conversation

@nobu

@nobu nobu commented Jun 16, 2022

Copy link
Copy Markdown
Member
  • Returning nil from the content_range method instead of raising an error when the unit in the content-range header is not "bytes".

Fix https://bugs.ruby-lang.org/issues/11450

Co-Authored-By: Nobuyoshi Nakada nobu@ruby-lang.org

* Returning nil from the `content_range` method instead of raising an
  error when the unit in the content-range header is not "bytes".

Fix https://bugs.ruby-lang.org/issues/11450

Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
@nobu
nobu merged commit 196f3d7 into ruby:master Jun 16, 2022
@nobu
nobu deleted the unknown-content-range-unit branch June 16, 2022 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants