Skip to content

Commit

Permalink
fix: force HTTPS when accessing epsg.io
Browse files Browse the repository at this point in the history
  • Loading branch information
spectrachrome committed Jan 8, 2025
1 parent 3dd193a commit d0a1fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mapview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class MapView extends Component {

const epsg = `EPSG:${code}`;
if (!proj4.defs(epsg)) {
const response = await fetch(`//epsg.io/${code}.proj4`);
const response = await fetch(`https://epsg.io/${code}.proj4`);
proj4.defs(epsg, await response.text());
}

Expand Down

0 comments on commit d0a1fe6

Please sign in to comment.