Don't keepalive connections on external upload.

Workaround for an Android OS bug.

Fixes #1

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-03-25 14:02:53 -07:00
parent c795a0119c
commit 72284ce5ec

View File

@ -400,6 +400,7 @@ public class PushServiceSocket {
connection.setRequestMethod(method);
connection.setRequestProperty("Content-Type", "application/octet-stream");
connection.setRequestProperty("Connection", "close");
connection.connect();
try {