developmentseed / titiler

Build your own Raster dynamic map tile services
https://developmentseed.org/titiler/
MIT License
765 stars 157 forks source link

TileJSON: Request with 'https', but return 'http' #968

Closed huanglii closed 2 weeks ago

huanglii commented 2 weeks ago

Problem description

[this should explain why the current behavior is a problem and why the expected output is a better solution.]

When I request a tilejson with 'https', it returns the tiles with 'http'.

https://example.com/titiler/cog/tilejson.json?url=...

{
    "tiles": [
        "http://example.com/titiler/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?url=..."
    ]
}

Expected Output

{
    "tiles": [
        "https//example.com/titiler/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?url=..."
    ]
}

Environment Information

Docker imges: ghcr.io/developmentseed/titiler:0.18.5