Fix attachment loading with "accept certificates" checked
* Fixes #2191778 (P1/S1) * Attachment retrieval wasn't using newer code to create its HttpClient. * Fix is simple, extremely safe Change-Id: I65be27decae8719bbad8ac7dce1c1164de4371a5
This commit is contained in:
parent
53123c2f91
commit
55a97fc360
@ -289,7 +289,7 @@ public class EasSyncService extends AbstractSyncService {
|
|||||||
Attachment att = req.att;
|
Attachment att = req.att;
|
||||||
Message msg = Message.restoreMessageWithId(mContext, att.mMessageKey);
|
Message msg = Message.restoreMessageWithId(mContext, att.mMessageKey);
|
||||||
doProgressCallback(msg.mId, att.mId, 0);
|
doProgressCallback(msg.mId, att.mId, 0);
|
||||||
DefaultHttpClient client = new DefaultHttpClient();
|
HttpClient client = getHttpClient(COMMAND_TIMEOUT);
|
||||||
String us = makeUriString("GetAttachment", "&AttachmentName=" + att.mLocation);
|
String us = makeUriString("GetAttachment", "&AttachmentName=" + att.mLocation);
|
||||||
HttpPost method = new HttpPost(URI.create(us));
|
HttpPost method = new HttpPost(URI.create(us));
|
||||||
method.setHeader("Authorization", mAuthString);
|
method.setHeader("Authorization", mAuthString);
|
||||||
|
Loading…
Reference in New Issue
Block a user