Skip to content

Commit

Permalink
Merge pull request #920 from davotoula/915-NIP05-verification-follows…
Browse files Browse the repository at this point in the history
…-redirects-against-specification

Set redirects to false for httpclient used during nip05
  • Loading branch information
vitorpamplona authored Jun 15, 2024
2 parents 035affa + 29a002e commit 21c397b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class Nip05NostrAddressVerifier() {
.header("User-Agent", "Amethyst/${BuildConfig.VERSION_NAME}")
.url(url)
.build()

HttpClientManager.getHttpClient()
// Fetchers MUST ignore any HTTP redirects given by the /.well-known/nostr.json endpoint.
HttpClientManager.getHttpClient().newBuilder().followRedirects(false).build()
.newCall(request)
.enqueue(
object : Callback {
Expand Down

0 comments on commit 21c397b

Please sign in to comment.