From: Seunghwan Lee Date: Fri, 4 Jan 2013 05:31:14 +0000 (+0900) Subject: append mms header option [Accept-Encoding: deflate,gzip] X-Git-Tag: accepted/tizen_2.1/20130425.035101~14^2~23^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a429a331a6abf58f74b9ef86fbdb6777e9c59180;p=framework%2Fmessaging%2Fmsg-service.git append mms header option [Accept-Encoding: deflate,gzip] --- diff --git a/plugin/mms_plugin/MmsPluginHttp.cpp b/plugin/mms_plugin/MmsPluginHttp.cpp index a625798..58d4eaf 100755 --- a/plugin/mms_plugin/MmsPluginHttp.cpp +++ b/plugin/mms_plugin/MmsPluginHttp.cpp @@ -170,6 +170,15 @@ static void __httpAllocHeaderInfo(curl_slist **responseHeaders, char *szUrl, int memset(szBuffer, 0, 1025); memset(pcheader, 0, HTTP_REQUEST_LEN); + nResult = __httpGetHeaderField(MMS_HH_ACCEPT_ENCODING, szBuffer); + if (nResult) { + snprintf(pcheader, HTTP_REQUEST_LEN, "Accept-Encoding: %s", szBuffer); + MSG_DEBUG("%s", pcheader); + *responseHeaders = curl_slist_append(*responseHeaders, pcheader); + } + + memset(szBuffer, 0, 1025); + memset(pcheader, 0, HTTP_REQUEST_LEN); nResult = __httpGetHeaderField(MMS_HH_USER_AGENT, szBuffer); if (nResult) { snprintf(pcheader, HTTP_REQUEST_LEN, "User-Agent: %s", szBuffer);