Skip to content

Fix Referer header for SQLite tile sources - #5489

Open
TheAquaMan wants to merge 1 commit into
osmandapp:masterfrom
TheAquaMan:codex/fix-sqlite-tile-referer
Open

Fix Referer header for SQLite tile sources#5489
TheAquaMan wants to merge 1 commit into
osmandapp:masterfrom
TheAquaMan:codex/fix-sqlite-tile-referer

Conversation

@TheAquaMan

Copy link
Copy Markdown

Summary

  • read the referer value from SQLite tile source metadata
  • add the configured value as the HTTP Referer header for online tile requests
  • preserve existing custom and default User-Agent behavior
  • apply the header in both map rendering and bulk tile download paths
  • add focused tests for custom request headers

Problem

OsmAnd iOS reads and applies info.useragent from online SQLite tile sources, but info.referer was parsed without being added to tile download requests. Tile servers that require a matching Referer therefore reject requests from iOS.

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

Successfully merging this pull request may close these issues.

1 participant