From e6c8abaae2f4d5a2990c07b9087300751d6f08cf Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 8 Nov 2023 18:57:12 +0000 Subject: [PATCH 1/5] Bump version number to v2.0.9 --- src/Requests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Requests.php b/src/Requests.php index edf37f221..bb5292ac4 100644 --- a/src/Requests.php +++ b/src/Requests.php @@ -148,7 +148,7 @@ class Requests { * * @var string */ - const VERSION = '2.0.8'; + const VERSION = '2.0.9'; /** * Selected transport name From 0344b984869697235cb4e0cafd98f50f5c6bf53c Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 8 Nov 2023 18:57:31 +0000 Subject: [PATCH 2/5] Update changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2facf6740..339b07c6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ Changelog ========= +2.0.9 +----- + +### Overview of changes +- Hotfix: Rollback changes from PR [#657]. [#839] Props [@tomsommer][gh-tomsommer] & [@laszlof][gh-laszlof] + +[#839]: https://github.com/WordPress/Requests/pull/839 + 2.0.8 ----- @@ -1015,6 +1023,7 @@ Initial release! [gh-jrfnl]: https://github.com/jrfnl [gh-KasperFranz]: https://github.com/KasperFranz [gh-kwuerl]: https://github.com/kwuerl +[gh-laszlof]: https://github.com/laszlof [gh-laurentmartelli]: https://github.com/laurentmartelli [gh-mbabker]: https://github.com/mbabker [gh-mircobabini]: https://github.com/mircobabini @@ -1039,6 +1048,7 @@ Initial release! [gh-TimothyBJacobs]: https://github.com/TimothyBJacobs [gh-tnorthcutt]: https://github.com/tnorthcutt [gh-todeveni]: https://github.com/todeveni +[gh-tomsommer]: https://github.com/tomsommer [gh-tonebender]: https://github.com/tonebender [gh-twdnhfr]: https://github.com/twdnhfr [gh-TysonAndre]: https://github.com/TysonAndre From 0071d76d7b579a1e7f81593523d20ada3f1849b3 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Wed, 8 Nov 2023 19:12:59 +0100 Subject: [PATCH 3/5] Merge pull request #839 from laszlof/issue-838 --- src/Transport/Curl.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Transport/Curl.php b/src/Transport/Curl.php index 29034b25d..7316987b5 100644 --- a/src/Transport/Curl.php +++ b/src/Transport/Curl.php @@ -25,7 +25,6 @@ final class Curl implements Transport { const CURL_7_10_5 = 0x070A05; const CURL_7_16_2 = 0x071002; - const CURL_7_22_0 = 0x071600; /** * Raw HTTP data @@ -364,7 +363,7 @@ private function setup_handle($url, $headers, $data, $options) { $options['hooks']->dispatch('curl.before_request', [&$this->handle]); // Force closing the connection for old versions of cURL (<7.22). - if ($this->version < self::CURL_7_22_0 && !isset($headers['Connection'])) { + if (!isset($headers['Connection'])) { $headers['Connection'] = 'close'; } From ea890b383d31e749d193bda76cb30848f226910e Mon Sep 17 00:00:00 2001 From: Juliette <663378+jrfnl@users.noreply.github.com> Date: Mon, 11 Sep 2023 10:46:11 +0200 Subject: [PATCH 4/5] Merge pull request #830 from WordPress/dependabot/github_actions/actions/checkout-4 GH Actions: Bump actions/checkout from 3 to 4 --- .github/workflows/cs.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/quicktest.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/update-cacert.yml | 2 +- .github/workflows/update-website.yml | 6 +++--- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index 8cd942c45..5afc96109 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7438319d5..dab433ff3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index b2758bb20..4e5c1f212 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e39fceeff..d8f358223 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,7 +37,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install PHP uses: shivammathur/setup-php@v2 diff --git a/.github/workflows/update-cacert.yml b/.github/workflows/update-cacert.yml index bc42a4195..5b709e209 100644 --- a/.github/workflows/update-cacert.yml +++ b/.github/workflows/update-cacert.yml @@ -55,7 +55,7 @@ jobs: fi - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Restore etags cache for certificate files uses: actions/cache@v2 diff --git a/.github/workflows/update-website.yml b/.github/workflows/update-website.yml index 4b309858b..33a4c0b81 100644 --- a/.github/workflows/update-website.yml +++ b/.github/workflows/update-website.yml @@ -49,7 +49,7 @@ jobs: fi - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: ${{ steps.base_branch.outputs.BRANCH }} @@ -111,7 +111,7 @@ jobs: fi - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: ref: gh-pages @@ -183,7 +183,7 @@ jobs: # Test that the site builds correctly. - name: Checkout the newly created branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: feature/auto-ghpages-update-${{ steps.get_pr_info.outputs.REF }} From 61e53a07d8d34444267aa386f80c1ee863872da1 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Tue, 10 Oct 2023 21:17:07 +0200 Subject: [PATCH 5/5] Merge pull request #836 from WordPress/feature/ghactions-move-debug-steps-earlier --- .github/workflows/quicktest.yml | 14 +++++++------- .github/workflows/test.yml | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 4e5c1f212..3d679f357 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -53,16 +53,22 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: '3.10' - name: Setup proxy server run: pip3 install mitmproxy + - name: Check mitmproxy version + run: mitmdump --version + - name: Start test server run: | PORT=8080 vendor/bin/start.sh echo "REQUESTS_TEST_HOST_HTTP=localhost:8080" >> $GITHUB_ENV + - name: Ping localhost domain + run: ping -c1 localhost + - name: Start proxy server run: | PORT=9002 tests/utils/proxy/start.sh @@ -75,12 +81,6 @@ jobs: - name: Ensure the HTTPS test instance on Render is spun up run: curl -s -I https://requests-test-server.onrender.com/ > /dev/null - - name: Check mitmproxy version - run: mitmdump --version - - - name: Ping localhost domain - run: ping -c1 localhost - - name: Access localhost on port 8080 run: curl -i http://localhost:8080 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d8f358223..d53f4a032 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -67,16 +67,22 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: '3.10' - name: Setup proxy server run: pip3 install mitmproxy + - name: Check mitmproxy version + run: mitmdump --version + - name: Start test server run: | PORT=8080 vendor/bin/start.sh echo "REQUESTS_TEST_HOST_HTTP=localhost:8080" >> $GITHUB_ENV + - name: Ping localhost domain + run: ping -c1 localhost + - name: Start proxy server run: | PORT=9002 tests/utils/proxy/start.sh @@ -89,12 +95,6 @@ jobs: - name: Ensure the HTTPS test instance on Render is spun up run: curl -s -I https://requests-test-server.onrender.com/ > /dev/null - - name: Check mitmproxy version - run: mitmdump --version - - - name: Ping localhost domain - run: ping -c1 localhost - - name: Access localhost on port 8080 run: curl -i http://localhost:8080