mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Supply fake User-Agent header
This commit is contained in:
parent
e7843e3af9
commit
7a388deb78
@ -88,7 +88,7 @@ object HTTP {
|
||||
* Sync. Don't call from the main thread.
|
||||
*/
|
||||
fun execute(verb: Verb, url: String, body: ByteArray?, timeout: Long = HTTP.timeout, useSeedNodeConnection: Boolean = false): Map<*, *> {
|
||||
val request = Request.Builder().url(url)
|
||||
val request = Request.Builder().url(url).removeHeader("User-Agent").addHeader("User-Agent", "WhatsApp")
|
||||
when (verb) {
|
||||
Verb.GET -> request.get()
|
||||
Verb.PUT, Verb.POST -> {
|
||||
|
Loading…
Reference in New Issue
Block a user