mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 10:05:15 +00:00
Supply fake Accept-Language header
This commit is contained in:
parent
7a388deb78
commit
bb1eb2310c
@ -88,7 +88,9 @@ 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).removeHeader("User-Agent").addHeader("User-Agent", "WhatsApp")
|
||||
val request = Request.Builder().url(url)
|
||||
.removeHeader("User-Agent").addHeader("User-Agent", "WhatsApp")
|
||||
.removeHeader("Accept-Language").addHeader("Accept-Language", "en-us")
|
||||
when (verb) {
|
||||
Verb.GET -> request.get()
|
||||
Verb.PUT, Verb.POST -> {
|
||||
|
Loading…
Reference in New Issue
Block a user