diff options
author | Jacek Antonelli | 2008-12-01 17:39:58 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-01 17:40:06 -0600 |
commit | 7abecb48babe6a6f09bf6692ba55076546cfced9 (patch) | |
tree | 8d18a88513fb97adf32c10aae78f4be1984942db /linden/indra/llmessage/llcurl.cpp | |
parent | Second Life viewer sources 1.21.6 (diff) | |
download | meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.zip meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.gz meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.bz2 meta-impy-7abecb48babe6a6f09bf6692ba55076546cfced9.tar.xz |
Second Life viewer sources 1.22.0-RC
Diffstat (limited to 'linden/indra/llmessage/llcurl.cpp')
-rw-r--r-- | linden/indra/llmessage/llcurl.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linden/indra/llmessage/llcurl.cpp b/linden/indra/llmessage/llcurl.cpp index 834ec4b..167e237 100644 --- a/linden/indra/llmessage/llcurl.cpp +++ b/linden/indra/llmessage/llcurl.cpp | |||
@@ -265,6 +265,10 @@ LLCurl::Easy* LLCurl::Easy::getEasy() | |||
265 | delete easy; | 265 | delete easy; |
266 | return NULL; | 266 | return NULL; |
267 | } | 267 | } |
268 | |||
269 | // set no DMS caching as default for all easy handles. This prevents them adopting a | ||
270 | // multi handles cache if they are added to one. | ||
271 | curl_easy_setopt(easy->mCurlEasyHandle, CURLOPT_DNS_CACHE_TIMEOUT, 0); | ||
268 | ++gCurlEasyCount; | 272 | ++gCurlEasyCount; |
269 | return easy; | 273 | return easy; |
270 | } | 274 | } |
@@ -747,7 +751,7 @@ bool LLCurlRequest::post(const std::string& url, const LLSD& data, LLCurl::Respo | |||
747 | easy->setopt(CURLOPT_POSTFIELDS, (void*)NULL); | 751 | easy->setopt(CURLOPT_POSTFIELDS, (void*)NULL); |
748 | easy->setopt(CURLOPT_POSTFIELDSIZE, bytes); | 752 | easy->setopt(CURLOPT_POSTFIELDSIZE, bytes); |
749 | 753 | ||
750 | easy->slist_append("Content-Type: application/xml"); | 754 | easy->slist_append("Content-Type: application/llsd+xml"); |
751 | easy->setHeaders(); | 755 | easy->setHeaders(); |
752 | 756 | ||
753 | lldebugs << "POSTING: " << bytes << " bytes." << llendl; | 757 | lldebugs << "POSTING: " << bytes << " bytes." << llendl; |