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

Tiles URL starts with "https,http,http://..." #89

Open
stevage opened this issue Dec 17, 2019 · 1 comment · May be fixed by #90
Open

Tiles URL starts with "https,http,http://..." #89

stevage opened this issue Dec 17, 2019 · 1 comment · May be fixed by #90

Comments

@stevage
Copy link
Contributor

@stevage stevage commented Dec 17, 2019

I'm getting a weird issue with a server hosted on Glitch where the tileJSON contains this:

"tiles":["https,http,http://demo-tessera.glitch.me/lgas/{z}/{x}/{y}.pbf"

Obviously that's not a usable tile endpoint, so Mapbox-GL-JS chokes on it.

I'm mystified why this is happening or what to do about it.

Any ideas?

@stevage

This comment has been minimized.

Copy link
Contributor Author

@stevage stevage commented Dec 17, 2019

Ok, so the issue seems to be that for some reason Glitch is setting the x-forwarded-proto header to this:

https,http,http

Whereas Tessera is assuming it will always be a single protocol. Annoyingly it doesn't seem to be a standard so there's no way to say who's right.

stevage added a commit to stevage/tessera that referenced this issue Dec 18, 2019
@stevage stevage linked a pull request that will close this issue Dec 18, 2019
stevage added a commit to stevage/tessera that referenced this issue Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.