diff options
| author | Don Kjer <don@lindenlab.com> | 2013-05-08 05:51:28 +0000 | 
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2013-05-08 05:51:28 +0000 | 
| commit | 3a351c4ee548e2bce8ad0d5935377a090591621f (patch) | |
| tree | a1e0987e75e9f02071b29539a5423a94714f5366 /indra/newview | |
| parent | 7223f016469ecaacedb841ea435207c4266269e8 (diff) | |
Adding follow_redirects parameter to LLHTTPClient get/head variants.  Not following redirects for facebook connect requests.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llpanelpeople.cpp | 15 | ||||
| -rw-r--r-- | indra/newview/tests/lltranslate_test.cpp | 4 | 
2 files changed, 14 insertions, 5 deletions
| diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp index af9ecd743c..479e503ef0 100644 --- a/indra/newview/llpanelpeople.cpp +++ b/indra/newview/llpanelpeople.cpp @@ -1854,14 +1854,20 @@ public:  void LLPanelPeople::loadFacebookFriends()  { -	LLHTTPClient::get(getFacebookConnectURL("/friend"), new FacebookFriendsResponder(this)); +	const bool follow_redirects=false; +	const F32 timeout=HTTP_REQUEST_EXPIRY_SECS; +	LLHTTPClient::get(getFacebookConnectURL("/friend"), new FacebookFriendsResponder(this), +					  LLSD(), timeout, follow_redirects);  }  void LLPanelPeople::tryToReconnectToFacebook()  {  	if (!mConnectedToFbc)  	{ -		LLHTTPClient::get(getFacebookConnectURL("/connection"), new FacebookConnectedResponder(this, false)); +		const bool follow_redirects=false; +		const F32 timeout=HTTP_REQUEST_EXPIRY_SECS; +		LLHTTPClient::get(getFacebookConnectURL("/connection"), new FacebookConnectedResponder(this, false), +						  LLSD(), timeout, follow_redirects);  	}  } @@ -1895,7 +1901,10 @@ void LLPanelPeople::onLoginFbcButtonClicked()  	}  	else  	{ -		LLHTTPClient::get(getFacebookConnectURL("/connection"), new FacebookConnectedResponder(this, true)); +		const bool follow_redirects=false; +		const F32 timeout=HTTP_REQUEST_EXPIRY_SECS; +		LLHTTPClient::get(getFacebookConnectURL("/connection"), new FacebookConnectedResponder(this, true), +						  LLSD(), timeout, follow_redirects);  	}  } diff --git a/indra/newview/tests/lltranslate_test.cpp b/indra/newview/tests/lltranslate_test.cpp index fd9527d631..8ce56326d8 100644 --- a/indra/newview/tests/lltranslate_test.cpp +++ b/indra/newview/tests/lltranslate_test.cpp @@ -308,8 +308,8 @@ void LLCurl::Responder::errorWithContent(U32, std::string const&, LLSD const&) {  void LLCurl::Responder::result(LLSD const&) {}  LLCurl::Responder::~Responder() {} -void LLHTTPClient::get(const std::string&, const LLSD&, ResponderPtr, const LLSD&, const F32) {} -void LLHTTPClient::get(const std::string&, LLPointer<LLCurl::Responder>, const LLSD&, const F32) {} +void LLHTTPClient::get(const std::string&, const LLSD&, ResponderPtr, const LLSD&, const F32, bool) {} +void LLHTTPClient::get(const std::string&, LLPointer<LLCurl::Responder>, const LLSD&, const F32, bool) {}  LLBufferStream::LLBufferStream(const LLChannelDescriptors& channels, LLBufferArray* buffer)  :	std::iostream(&mStreamBuf), mStreamBuf(channels, buffer) {} | 
