From 235135da2bb4f6ebd5bfcb639180be052101e680 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 12 Jun 2021 09:18:47 +0200 Subject: [PATCH] Documentation: reviewed other links ... for correctness and use of `https`. Note: this review explicitly did not change any URLs used in example code or in tests. --- CHANGELOG.md | 4 ++-- README.md | 4 ++-- docs/usage-advanced.md | 2 +- docs/why-requests.md | 2 +- library/Requests/IPv6.php | 2 +- library/Requests/IRI.php | 2 +- tests/IRI.php | 2 +- tests/SSL.php | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12cf19117..9c0502256 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -555,8 +555,8 @@ default - [Add Composer support][#6] - You can now install Requests via the `rmccue/requests` package on Composer -[docs/proxy]: http://requests.ryanmccue.info/docs/proxy.html -[docs/usage-advanced]: http://requests.ryanmccue.info/docs/usage-advanced.html +[docs/proxy]: https://requests.ryanmccue.info/docs/proxy.html +[docs/usage-advanced]: https://requests.ryanmccue.info/docs/usage-advanced.html [#1]: https://github.com/WordPress/Requests/issues/1 [#2]: https://github.com/WordPress/Requests/issues/2 diff --git a/README.md b/README.md index 22166acc9..83d856d43 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Requests for PHP [![CS](https://github.com/WordPress/Requests/actions/workflows/cs.yml/badge.svg)](https://github.com/WordPress/Requests/actions/workflows/cs.yml) [![Lint](https://github.com/WordPress/Requests/actions/workflows/lint.yml/badge.svg)](https://github.com/WordPress/Requests/actions/workflows/lint.yml) [![Test](https://github.com/WordPress/Requests/actions/workflows/test.yml/badge.svg)](https://github.com/WordPress/Requests/actions/workflows/test.yml) -[![codecov.io](http://codecov.io/github/WordPress/Requests/coverage.svg?branch=stable)](http://codecov.io/github/WordPress/Requests?branch=stable) +[![codecov.io](https://codecov.io/gh/WordPress/Requests/branch/stable/graph/badge.svg?token=AfpxK7WMxj&branch=master)](https://codecov.io/gh/WordPress/Requests?branch=stable) Requests is a HTTP library written in PHP, for human beings. It is roughly based on the API from the excellent [Requests Python @@ -135,7 +135,7 @@ Testing Requests strives to have 100% code-coverage of the library with an extensive set of tests. We're not quite there yet, but [we're getting close][codecov]. -[codecov]: http://codecov.io/github/WordPress/Requests +[codecov]: https://codecov.io/github/WordPress/Requests/ To run the test suite, first check that you have the [PHP JSON extension ](https://www.php.net/book.json) enabled. Then diff --git a/docs/usage-advanced.md b/docs/usage-advanced.md index 6c82ed8cf..114a3fa90 100644 --- a/docs/usage-advanced.md +++ b/docs/usage-advanced.md @@ -66,7 +66,7 @@ first PHP HTTP library to fully support SSL verification. See also the [related PHP][php-bug-47030] and [OpenSSL-related][php-bug-55820] bugs in PHP for more information on Subject Alternate Name field. -[Mozilla certificate authority list]: http://www.mozilla.org/projects/security/certs/ +[Mozilla certificate authority list]: https://www.mozilla.org/projects/security/certs/ [php-bug-47030]: https://php.net/47030 [php-bug-55820]: https://php.net/55820 diff --git a/docs/why-requests.md b/docs/why-requests.md index 6f14910f5..66fcc5c70 100644 --- a/docs/why-requests.md +++ b/docs/why-requests.md @@ -62,7 +62,7 @@ Why should I use Requests? [hooking system]: hooks.md [requests_ssl]: https://github.com/WordPress/Requests/blob/stable/library/Requests/SSL.php [ghactions]: https://github.com/WordPress/Requests/actions -[wpssl]: http://core.trac.wordpress.org/ticket/25007 +[wpssl]: https://core.trac.wordpress.org/ticket/25007 Why shouldn't I use... diff --git a/library/Requests/IPv6.php b/library/Requests/IPv6.php index ba88786be..41ab89cca 100644 --- a/library/Requests/IPv6.php +++ b/library/Requests/IPv6.php @@ -30,7 +30,7 @@ class Requests_IPv6 { * @author elfrink at introweb dot nl * @author Josh Peck * @copyright 2003-2005 The PHP Group - * @license http://www.opensource.org/licenses/bsd-license.php + * @license https://opensource.org/licenses/bsd-license.php * @param string $ip An IPv6 address * @return string The uncompressed IPv6 address */ diff --git a/library/Requests/IRI.php b/library/Requests/IRI.php index 5d80e4957..749b0bcf5 100644 --- a/library/Requests/IRI.php +++ b/library/Requests/IRI.php @@ -43,7 +43,7 @@ * @author Geoffrey Sneddon * @author Steve Minutillo * @copyright 2007-2009 Geoffrey Sneddon and Steve Minutillo - * @license http://www.opensource.org/licenses/bsd-license.php + * @license https://opensource.org/licenses/bsd-license.php * @link http://hg.gsnedders.com/iri/ * * @property string $iri IRI we're working with diff --git a/tests/IRI.php b/tests/IRI.php index e66c08e91..488083fc1 100644 --- a/tests/IRI.php +++ b/tests/IRI.php @@ -35,7 +35,7 @@ * @package IRI * @author Geoffrey Sneddon * @copyright 2008-2010 Geoffrey Sneddon - * @license http://www.opensource.org/licenses/bsd-license.php + * @license https://opensource.org/licenses/bsd-license.php * @link http://hg.gsnedders.com/iri/ * */ diff --git a/tests/SSL.php b/tests/SSL.php index e543f61bc..8c28c1d55 100644 --- a/tests/SSL.php +++ b/tests/SSL.php @@ -97,7 +97,7 @@ public function testInvalidCNFallback() { * As per RFC2818, if the SAN field exists, we should parse that and ignore * the value of the CN field. * - * @link http://tools.ietf.org/html/rfc2818#section-3.1 + * @link https://tools.ietf.org/html/rfc2818#section-3.1 */ public function testIgnoreCNWithSAN() { $certificate = $this->fakeCertificate('example.net', 'example.com');