<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/net/http/test_httpheader.rb, branch v4.0.2</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/net-http] Fix test for Ruby head</title>
<updated>2022-11-26T21:06:05+00:00</updated>
<author>
<name>Peter Zhu</name>
<email>peter@peterzhu.ca</email>
</author>
<published>2022-11-26T21:06:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=de9e2a5ac7b4ef52a03b1b6a3b07708f11d8d11c'/>
<id>de9e2a5ac7b4ef52a03b1b6a3b07708f11d8d11c</id>
<content type='text'>
The error raised for broken coderanges was changed in ruby/ruby@571d21f
and the test was fixed in that commit but not ported to this repo.

ruby/net-http@e6185dda26ea6db7a3515d4f47ab231f5f4ac902
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error raised for broken coderanges was changed in ruby/ruby@571d21f
and the test was fixed in that commit but not ported to this repo.

ruby/net-http@e6185dda26ea6db7a3515d4f47ab231f5f4ac902
</pre>
</div>
</content>
</entry>
<entry>
<title>Make String#rstrip{,!} raise Encoding::CompatibilityError for broken coderange</title>
<updated>2022-11-25T02:24:42+00:00</updated>
<author>
<name>Jeremy Evans</name>
<email>code@jeremyevans.net</email>
</author>
<published>2022-08-24T17:31:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=571d21fd4a2e877f49b4ff918832bda9a5e8f91c'/>
<id>571d21fd4a2e877f49b4ff918832bda9a5e8f91c</id>
<content type='text'>
It's questionable whether we want to allow rstrip to work for strings
where the broken coderange occurs before the trailing whitespace and
not after, but this approach is probably simpler, and I don't think
users should expect string operations like rstrip to work on broken
strings.

In some cases, this changes rstrip to raise
Encoding::CompatibilityError instead of ArgumentError.  However, as
the problem is related to an encoding issue in the receiver, and due
not due to an issue with an argument, I think
Encoding::CompatibilityError is the more appropriate error.

Fixes [Bug #18931]
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's questionable whether we want to allow rstrip to work for strings
where the broken coderange occurs before the trailing whitespace and
not after, but this approach is probably simpler, and I don't think
users should expect string operations like rstrip to work on broken
strings.

In some cases, this changes rstrip to raise
Encoding::CompatibilityError instead of ArgumentError.  However, as
the problem is related to an encoding issue in the receiver, and due
not due to an issue with an argument, I think
Encoding::CompatibilityError is the more appropriate error.

Fixes [Bug #18931]
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/net-http] Make `Net::HTTPHeader#content_range` return nil on non-byte units</title>
<updated>2022-06-16T14:35:27+00:00</updated>
<author>
<name>Shishir Joshi</name>
<email>shishir127@users.noreply.github.com</email>
</author>
<published>2022-06-16T11:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c310691dd8087eac5153b3c778ea898dcf387b57'/>
<id>c310691dd8087eac5153b3c778ea898dcf387b57</id>
<content type='text'>
* 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

https://github.com/ruby/net-http/commit/0b5030dd86

Co-Authored-By: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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

https://github.com/ruby/net-http/commit/0b5030dd86

Co-Authored-By: Nobuyoshi Nakada &lt;nobu@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "HTTPHeader.content_range throws error on non-byte units"</title>
<updated>2022-06-16T13:10:59+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-06-16T13:10:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=2223eb082afa6d05321b69df783d4133b9aacba6'/>
<id>2223eb082afa6d05321b69df783d4133b9aacba6</id>
<content type='text'>
This reverts commit 63546bfc1581d4abec2a0d846106a1c0afc0efa9.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 63546bfc1581d4abec2a0d846106a1c0afc0efa9.
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTPHeader.content_range throws error on non-byte units</title>
<updated>2022-06-16T11:16:47+00:00</updated>
<author>
<name>Shishir Joshi</name>
<email>shishir127@users.noreply.github.com</email>
</author>
<published>2022-06-16T11:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=63546bfc1581d4abec2a0d846106a1c0afc0efa9'/>
<id>63546bfc1581d4abec2a0d846106a1c0afc0efa9</id>
<content type='text'>
* Added a nil check in Net::HTTPHeader#initialize_http_header for keys in the header that do not have any value
* Returning nil from the content_range method instead of raising an error when the unit in the content-range header is not bytes
* Modified initialize_http_header to match trunk

fix [Bug #11450]
fix https://github.com/ruby/ruby/pull/1018</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Added a nil check in Net::HTTPHeader#initialize_http_header for keys in the header that do not have any value
* Returning nil from the content_range method instead of raising an error when the unit in the content-range header is not bytes
* Modified initialize_http_header to match trunk

fix [Bug #11450]
fix https://github.com/ruby/ruby/pull/1018</pre>
</div>
</content>
</entry>
<entry>
<title>Show the caller's location</title>
<updated>2019-07-23T15:26:28+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2019-07-23T15:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c9826c20d204d4b8894e6fd51e5913959676776d'/>
<id>c9826c20d204d4b8894e6fd51e5913959676776d</id>
<content type='text'>
* lib/net/http/header.rb: show the caller's location instead of
  the current lines.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* lib/net/http/header.rb: show the caller's location instead of
  the current lines.
</pre>
</div>
</content>
</entry>
<entry>
<title>Preserve HTTP header key as string [Bug #15394]</title>
<updated>2018-12-10T23:54:14+00:00</updated>
<author>
<name>naruse</name>
<email>naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2018-12-10T23:54:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1bf066dcfaeb05130f9b69c2f0928987371ecbc6'/>
<id>1bf066dcfaeb05130f9b69c2f0928987371ecbc6</id>
<content type='text'>
to prevent send Host header twice accidentally.

From: Sangyong Sim &lt;sangyong-sim@cookpad.com&gt;

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to prevent send Host header twice accidentally.

From: Sangyong Sim &lt;sangyong-sim@cookpad.com&gt;

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>raise error if value contains CR/LF in iniheader of initialize_http_header</title>
<updated>2017-12-20T12:06:59+00:00</updated>
<author>
<name>naruse</name>
<email>naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-12-20T12:06:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0078e40115fd53e2cafd4e8cfb6ff5fd7f87c3db'/>
<id>0078e40115fd53e2cafd4e8cfb6ff5fd7f87c3db</id>
<content type='text'>
like r59693, initialize_http_header also should raise error. [Bug #14208]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
like r59693, initialize_http_header also should raise error. [Bug #14208]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>HTTPHeader#add_field should allow binary [Bug #13926]</title>
<updated>2017-09-25T14:28:53+00:00</updated>
<author>
<name>naruse</name>
<email>naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-09-25T14:28:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=56f91c6ec52deb3808c426a6d53ac4616527e5ad'/>
<id>56f91c6ec52deb3808c426a6d53ac4616527e5ad</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
<entry>
<title>A HTTP Header value must not contain CR or LF.</title>
<updated>2017-08-30T17:24:05+00:00</updated>
<author>
<name>naruse</name>
<email>naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e</email>
</author>
<published>2017-08-30T17:24:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=427f5b57135fa165990f87c93658fafbe070289f'/>
<id>427f5b57135fa165990f87c93658fafbe070289f</id>
<content type='text'>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
</pre>
</div>
</content>
</entry>
</feed>
