Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading SVGZ results in error #36

Closed
vitrinekast opened this issue Mar 8, 2022 · 3 comments
Closed

Downloading SVGZ results in error #36

vitrinekast opened this issue Mar 8, 2022 · 3 comments

Comments

@vitrinekast
Copy link

When downloading a map in SVGZ, in my case https://print.get-map.org/maps/208909, I get the following error:

This page contains the following errors:
error on line 1 at column 1: Encoding error
Below is a rendering of the page up to the first error.
@hholzgra
Copy link
Owner

hholzgra commented Mar 8, 2022

The file is delivered correctly as gzip compressed SVG, but the content header is generated as

Content-Type: image/svg+xml

but seems to be missing

Content-Encoding: gzip

so browsers that try to display the SVG directly stumble ... it is still possible to do "Save as ..." to save the received file.

Need to play with this a bit to see if adding gzip content encoding is sufficient, or may lead to other problems ...

@hholzgra
Copy link
Owner

hholzgra commented Mar 9, 2022

See also w3c/svgwg#701

hholzgra added a commit to hholzgra/maposmatic that referenced this issue Mar 9, 2022
@hholzgra
Copy link
Owner

hholzgra commented Mar 9, 2022

Fixed by hholzgra/maposmatic@1520059

@hholzgra hholzgra closed this as completed Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants