Bug 807546 - Specify Connection: close in announcements fetch requests. r=liuche

This commit is contained in:
Richard Newman 2012-11-01 12:29:10 -07:00
parent 98fbd75674
commit c34af5b14f

View File

@ -52,6 +52,9 @@ public class AnnouncementsFetchResourceDelegate extends SyncResourceDelegate {
request.addHeader("Accept-Language", delegate.getLocale().toString());
request.addHeader("Accept", ACCEPT_HEADER);
// We never want to keep connections alive.
request.addHeader("Connection", "close");
// Set If-Modified-Since to avoid re-fetching content.
final long ifModifiedSince = delegate.getLastFetch();
if (ifModifiedSince > 0) {