Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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"
  • Loading branch information
monich committed Jan 10, 2017
1 parent 849b3d0 commit 5cd5198
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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 <slava.monich@jolla.com>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5cd5198

Please sign in to comment.