mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 807546 - Specify Connection: close in announcements fetch requests. r=liuche
This commit is contained in:
parent
98fbd75674
commit
c34af5b14f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user