diff options
author | Seunghwan Lee <sh.cat.lee@samsung.com> | 2013-01-04 14:31:14 +0900 |
---|---|---|
committer | Seunghwan Lee <sh.cat.lee@samsung.com> | 2013-01-04 14:31:14 +0900 |
commit | a429a331a6abf58f74b9ef86fbdb6777e9c59180 (patch) | |
tree | ff81ceb530c481054e7f8394bb17a9d38c30867f /plugin | |
parent | 6744e87415461be3533155487165f5d89508a1f7 (diff) | |
download | msg-service-a429a331a6abf58f74b9ef86fbdb6777e9c59180.tar.gz msg-service-a429a331a6abf58f74b9ef86fbdb6777e9c59180.tar.bz2 msg-service-a429a331a6abf58f74b9ef86fbdb6777e9c59180.zip |
append mms header option [Accept-Encoding: deflate,gzip]
Diffstat (limited to 'plugin')
-rwxr-xr-x | plugin/mms_plugin/MmsPluginHttp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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); |