Refactor: Move OpenStreetMap User-Agent to Constants

This commit is contained in:
daplugg23
2026-02-04 20:35:06 -06:00
parent 1e6e9ada62
commit 08610ee398
2 changed files with 2 additions and 1 deletions

View File

@@ -688,7 +688,7 @@ class AlertDialogs(
suspend fun search() {
okHttpClient.newCall(Request.Builder()
.url("https://nominatim.openstreetmap.org/search".toUri().buildUpon().appendQueryParameter("q", locationName).appendQueryParameter("format", "jsonv2").build().toString())
.header("User-Agent", "PurrfectSnap/1.0")
.header("User-Agent", Constants.OSM_USER_AGENT)
.build()
).await().use { response ->
if (!response.isSuccessful) {