mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 10:05:15 +00:00
Add documentation
This commit is contained in:
parent
bb1eb2310c
commit
3bbfef7d81
@ -89,8 +89,8 @@ object HTTP {
|
||||
*/
|
||||
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")
|
||||
.removeHeader("Accept-Language").addHeader("Accept-Language", "en-us")
|
||||
.removeHeader("User-Agent").addHeader("User-Agent", "WhatsApp") // Set a fake value
|
||||
.removeHeader("Accept-Language").addHeader("Accept-Language", "en-us") // Set a fake value
|
||||
when (verb) {
|
||||
Verb.GET -> request.get()
|
||||
Verb.PUT, Verb.POST -> {
|
||||
|
Loading…
Reference in New Issue
Block a user