From 5cd5198e5ae8494b283c4315a3f3205afe671937 Mon Sep 17 00:00:00 2001 From: Slava Monich Date: Tue, 10 Jan 2017 19:06:41 +0200 Subject: [PATCH] [mms-lib] Set HTTP Connection header to "close". Fixes MER#1731 We never reuse the connection and operators usually reply with "Connection: close" anyway. Also, some carriers actually require Connection to be "close" --- mms-lib/src/mms_task_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mms-lib/src/mms_task_http.c b/mms-lib/src/mms_task_http.c index 5a985fb..b3e4597 100644 --- a/mms-lib/src/mms_task_http.c +++ b/mms-lib/src/mms_task_http.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2016 Jolla Ltd. + * Copyright (C) 2013-2017 Jolla Ltd. * Contact: Slava Monich * * This program is free software; you can redistribute it and/or modify @@ -212,6 +212,8 @@ mms_http_transfer_new( soup_message_set_flags(tx->message, SOUP_MESSAGE_NO_REDIRECT | SOUP_MESSAGE_NEW_CONNECTION); + soup_message_headers_append(tx->message->request_headers, + "Connection", "close"); if (cfg->uaprof && cfg->uaprof[0]) { const char* uaprof_header = "x-wap-profile"; GVERBOSE("%s %s", uaprof_header, cfg->uaprof); -- 2.23.0