From 55a97fc360ac549631af3aa3aad9833812674562 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Mon, 19 Oct 2009 10:31:45 -0700 Subject: [PATCH] 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 --- src/com/android/exchange/EasSyncService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java index 14e9da53d..77f326016 100644 --- a/src/com/android/exchange/EasSyncService.java +++ b/src/com/android/exchange/EasSyncService.java @@ -289,7 +289,7 @@ public class EasSyncService extends AbstractSyncService { Attachment att = req.att; Message msg = Message.restoreMessageWithId(mContext, att.mMessageKey); doProgressCallback(msg.mId, att.mId, 0); - DefaultHttpClient client = new DefaultHttpClient(); + HttpClient client = getHttpClient(COMMAND_TIMEOUT); String us = makeUriString("GetAttachment", "&AttachmentName=" + att.mLocation); HttpPost method = new HttpPost(URI.create(us)); method.setHeader("Authorization", mAuthString);