Fix OpenStreetMap User-Agent and Story Rewatch Indicator
This commit is contained in:
@@ -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", Constants.USER_AGENT)
|
||||
.header("User-Agent", "PurrfectSnap/1.0")
|
||||
.build()
|
||||
).await().use { response ->
|
||||
if (!response.isSuccessful) {
|
||||
|
||||
Reference in New Issue
Block a user