Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Fix HTTP_X_FORWARDED_PROTO issue #97

Open
wants to merge 86 commits into
base: vectortiles
Choose a base branch
from
Open

Fix HTTP_X_FORWARDED_PROTO issue #97

wants to merge 86 commits into from

Conversation

piedmontlong
Copy link

No description provided.

daliborjanak and others added 30 commits May 3, 2016 23:21
This adds a configuration option for a prefix to the mbtiles, so you can
store the tiles in other locations.

It also changes the no tile found 404 to a 204, as the mapbox team will
be doing:
mapbox/mapbox-gl-js#1800 (comment)
Add prefix to mbtiles, return 204 on no tile
Fixed issue if HTTP_X_FORWARDED_PROTO is unset.
Removes body data from http 204 response
…er-php-psr2-lower-case-constant-values

Change PHP keywords to comply with PSR2
Resolved bug in transparent png tile
…in the layer name.

If the hostname contained the layer name (eg. https://layername.domain.com/layername/wmts) then the WMTS capabilities document contained an incorrect Resource URL because the hostname was stripped back to simply https://.  This modification simply looks for the last occurrence of the layer name instead of the first when forming the Resource URL.
Modified WMTS Resource URL generation to support hostnames that contain the layer name.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.