Skip to content

Commit 0f80b0c

Browse files
authored
Merge pull request elementor#876 from timothylcooke/develop
Fix elementor#240: ignore SSL errors when fetching sitemap from local site with self-signed certificate.
2 parents 8e0d160 + a17c784 commit 0f80b0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Unreleased
22

3+
- [#876](https://github.com/WP2Static/wp2static/pull/876): Fix #240: ignore SSL errors when fetching sitemap from local site with self-signed certificate. @timothylcooke
34
- [d3977eab](d3977eab6be24c4985d998a7f4bf07409ef4a71b): Create an index on `wp2static_jobs.status`. @john-shaffer
45
- [#785](https://github.com/leonstafford/wp2static/issues/785): Accept self-signed certs during sitemap crawling. @working-name, @john-shaffer
56
- [#806](https://github.com/leonstafford/wp2static/pull/806): Detect dead jobs and mark as failed. @john-shaffer

src/SitemapParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected function getContent() {
238238
if ( ! isset( $this->config['guzzle']['headers']['User-Agent'] ) ) {
239239
$this->config['guzzle']['headers']['User-Agent'] = $this->user_agent;
240240
}
241-
$client = new WP2StaticGuzzleHttp\Client();
241+
$client = new WP2StaticGuzzleHttp\Client( [ 'verify' => false ] );
242242
$res = $client->request( 'GET', $this->current_url, $this->config['guzzle'] );
243243
if ( $res->getStatusCode() === 200 ) {
244244
return $res->getBody()->getContents();

0 commit comments

Comments
 (0)