mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-23 10:36:21 +00:00
Don't keepalive connections on external upload.
Workaround for an Android OS bug. Fixes #1 // FREEBIE
This commit is contained in:
@@ -400,6 +400,7 @@ public class PushServiceSocket {
|
|||||||
|
|
||||||
connection.setRequestMethod(method);
|
connection.setRequestMethod(method);
|
||||||
connection.setRequestProperty("Content-Type", "application/octet-stream");
|
connection.setRequestProperty("Content-Type", "application/octet-stream");
|
||||||
|
connection.setRequestProperty("Connection", "close");
|
||||||
connection.connect();
|
connection.connect();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user