<feed xmlns='http://www.w3.org/2005/Atom'>
<title>otp.git/lib/inets/src/http_lib, branch maint-20</title>
<subtitle>Mirror of Erlang/OTP repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/'/>
<entry>
<title>inets: Gracefully handle bad headers</title>
<updated>2018-05-22T16:07:50+00:00</updated>
<author>
<name>Ingela Anderton Andin</name>
<email>ingela@erlang.org</email>
</author>
<published>2018-04-12T12:24:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=daba7e0abe4a5642543676e966298b08dee83eb9'/>
<id>daba7e0abe4a5642543676e966298b08dee83eb9</id>
<content type='text'>
max_headers operated on the individual header length instead of
the total length of all headers. Also headers with empty keys are
now discarded.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
max_headers operated on the individual header length instead of
the total length of all headers. Also headers with empty keys are
now discarded.
</pre>
</div>
</content>
</entry>
<entry>
<title>inets: work around http_uri:parse Dialyzer warning in uri_SUITE.erl:274</title>
<updated>2018-03-06T09:31:58+00:00</updated>
<author>
<name>Luca Favatella</name>
<email>luca.favatella@erlang-solutions.com</email>
</author>
<published>2018-03-06T09:28:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=9fc5b13f919cdda12ee8e980d59b67f28a109786'/>
<id>9fc5b13f919cdda12ee8e980d59b67f28a109786</id>
<content type='text'>
Addresses https://github.com/erlang/otp/pull/1724#discussion_r172442753

Current `http_uri:parse/2` implementation intends that ["non-fun
scheme_validation_fun works as no option
passed"](https://github.com/erlang/otp/blob/OTP-20.2.4/lib/inets/test/uri_SUITE.erl#L271-L274).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Addresses https://github.com/erlang/otp/pull/1724#discussion_r172442753

Current `http_uri:parse/2` implementation intends that ["non-fun
scheme_validation_fun works as no option
passed"](https://github.com/erlang/otp/blob/OTP-20.2.4/lib/inets/test/uri_SUITE.erl#L271-L274).
</pre>
</div>
</content>
</entry>
<entry>
<title>inets: refine types and doc of http_uri:parse options</title>
<updated>2018-03-05T11:36:17+00:00</updated>
<author>
<name>Luca Favatella</name>
<email>luca.favatella@erlang-solutions.com</email>
</author>
<published>2018-03-05T11:05:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=81dc712abfc5e93d996191178e555d0c6af3652d'/>
<id>81dc712abfc5e93d996191178e555d0c6af3652d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>inets: export types documented for http_uri module</title>
<updated>2018-03-05T10:56:02+00:00</updated>
<author>
<name>Luca Favatella</name>
<email>luca.favatella@erlang-solutions.com</email>
</author>
<published>2018-02-22T20:14:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=27cfa1da6d35674f6cd169b103385a09c8d4c55a'/>
<id>27cfa1da6d35674f6cd169b103385a09c8d4c55a</id>
<content type='text'>
Also:

* Reuse type `inet:port_number()` in `http_uri` code and doc;

* Do not imply that http_uri module can properly handle UTF-8 encoded
  binaries, while it can't.

* Enrich function specifications in http_uri module;

* Fix http_uri doc re missing type definition for `Scheme`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also:

* Reuse type `inet:port_number()` in `http_uri` code and doc;

* Do not imply that http_uri module can properly handle UTF-8 encoded
  binaries, while it can't.

* Enrich function specifications in http_uri module;

* Fix http_uri doc re missing type definition for `Scheme`.
</pre>
</div>
</content>
</entry>
<entry>
<title>inets: Restore old behavior when parsing "+"</title>
<updated>2017-09-06T11:20:21+00:00</updated>
<author>
<name>Péter Dimitrov</name>
<email>peterdmv@erlang.org</email>
</author>
<published>2017-09-05T07:30:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=2a42a7d14bfdfdc323fa0b6da465f79821dafcae'/>
<id>2a42a7d14bfdfdc323fa0b6da465f79821dafcae</id>
<content type='text'>
"+" is part of sub-delims according to RFC 3986 and shall not be
converted to space.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"+" is part of sub-delims according to RFC 3986 and shall not be
converted to space.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2017-06-14T13:36:21+00:00</updated>
<author>
<name>Hans Nilsson</name>
<email>hans@erlang.org</email>
</author>
<published>2017-06-14T13:36:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=43718d3b81d7f3d08e25047e22d579801bbe5044'/>
<id>43718d3b81d7f3d08e25047e22d579801bbe5044</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add binary string support to http_uri functions</title>
<updated>2017-05-05T15:48:30+00:00</updated>
<author>
<name>Tristan Sloughter</name>
<email>t@crashfast.com</email>
</author>
<published>2017-05-05T03:43:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a42858f00ba09759d5f723895e52cd89c77165ac'/>
<id>a42858f00ba09759d5f723895e52cd89c77165ac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright year</title>
<updated>2017-05-04T13:42:21+00:00</updated>
<author>
<name>Raimo Niskanen</name>
<email>raimo@erlang.org</email>
</author>
<published>2017-05-04T13:42:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=83e20c62057ebc1d8064bf57b01be560cd244e1d'/>
<id>83e20c62057ebc1d8064bf57b01be560cd244e1d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Omit port from Host header on redirect to well-known port</title>
<updated>2017-03-17T08:35:49+00:00</updated>
<author>
<name>Bram Verburg</name>
<email>bram.verburg@voltone.net</email>
</author>
<published>2017-03-17T08:35:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=a13e73d70d2af0a686701a3c8b16b82b664abd19'/>
<id>a13e73d70d2af0a686701a3c8b16b82b664abd19</id>
<content type='text'>
ERL-316, as part of 19.3, adds the port number to the Host header
upon automatic redirection. The port number is included even if it
is a well-known port (80, 443). This is different from the
behaviour of most HTTP clients, as well as httpc's own for new
requests.

The added port number can lead to problems such as this one, where
the request signature assumes the client will not send the :443
suffix on redirection to an https URL:
https://github.com/nerves-project/nerves/issues/96

I was unable to add a test case, since that would require a server
on a well-known port, but I manually verified that the GitHub/S3
signing issue was indeed resolved with this patch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ERL-316, as part of 19.3, adds the port number to the Host header
upon automatic redirection. The port number is included even if it
is a well-known port (80, 443). This is different from the
behaviour of most HTTP clients, as well as httpc's own for new
requests.

The added port number can lead to problems such as this one, where
the request signature assumes the client will not send the :443
suffix on redirection to an https URL:
https://github.com/nerves-project/nerves/issues/96

I was unable to add a test case, since that would require a server
on a well-known port, but I manually verified that the GitHub/S3
signing issue was indeed resolved with this patch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update copyright-year</title>
<updated>2016-12-07T12:15:31+00:00</updated>
<author>
<name>Erlang/OTP</name>
<email>otp@erlang.org</email>
</author>
<published>2016-12-07T12:15:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.ninenines.eu/otp.git/commit/?id=3eddb0f762de248d3230b38bc9d478bfbc8e7331'/>
<id>3eddb0f762de248d3230b38bc9d478bfbc8e7331</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
