From a429a331a6abf58f74b9ef86fbdb6777e9c59180 Mon Sep 17 00:00:00 2001 From: Seunghwan Lee Date: Fri, 4 Jan 2013 14:31:14 +0900 Subject: [PATCH] append mms header option [Accept-Encoding: deflate,gzip] --- plugin/mms_plugin/MmsPluginHttp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.7.4