diff options
| author | Don Kjer <don@lindenlab.com> | 2013-03-13 08:46:59 +0000 | 
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2013-03-13 08:46:59 +0000 | 
| commit | 662d67e3b5f1cbf5e894f0e4af37a31faacd67e3 (patch) | |
| tree | 93af533d9c1e9c027c5abc56a5de4ee207591b23 /indra/llcorehttp | |
| parent | f945415210f0e18c2c6d941fda6b7d45cb0f06f1 (diff) | |
| parent | 0ebcdce82bffae18459ed541f05906f625ef47e2 (diff) | |
Merging LLCURL::Responder changes with CHUI changes.  Fixed gcc 4.6 compile failures
Diffstat (limited to 'indra/llcorehttp')
| -rw-r--r-- | indra/llcorehttp/_httpoprequest.cpp | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/indra/llcorehttp/_httpoprequest.cpp b/indra/llcorehttp/_httpoprequest.cpp index 5e703cd183..74fc5c393a 100644 --- a/indra/llcorehttp/_httpoprequest.cpp +++ b/indra/llcorehttp/_httpoprequest.cpp @@ -581,8 +581,13 @@ size_t HttpOpRequest::readCallback(void * data, size_t size, size_t nmemb, void  	const size_t body_size(op->mReqBody->size());  	if (body_size <= op->mCurlBodyPos)  	{ -		LL_WARNS("HttpCore") << "Request body position beyond body size.  Aborting request." -							 << LL_ENDL; +		if (body_size < op->mCurlBodyPos) +		{ +			// Warn but continue if the read position moves beyond end-of-body +			// for some reason. +			LL_WARNS("HttpCore") << "Request body position beyond body size.  Truncating request body." +								 << LL_ENDL; +		}  		return 0;  	} | 
