Skip to content

Commit

Permalink
fix: use http for all sitemaps.org schema urls
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongitmail committed Jun 30, 2024
1 parent 3e77183 commit 32de434
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ SELECT * FROM campsites WHERE LOWER(country) = LOWER(params.country) AND LOWER(s

```xml
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
<url>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fixtures/expected-sitemap-index-subpage1.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
<url>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fixtures/expected-sitemap-index-subpage2.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
<url>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fixtures/expected-sitemap-index-subpage3.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
<url>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/fixtures/expected-sitemap.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
<url>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sitemap.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ describe('sitemap.ts', () => {
const expected = `
<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>
<url>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function generateBody(
): string {
return `<?xml version="1.0" encoding="UTF-8" ?>
<urlset
xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
>${Array.from(paths)
.map(
Expand Down

0 comments on commit 32de434

Please sign in to comment.