diff options
author | Oz Linden <oz@lindenlab.com> | 2013-01-15 08:49:08 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-01-15 08:49:08 -0500 |
commit | e826011091f0edef81b9b86a525e31fc13ceea3a (patch) | |
tree | fde0058c79177cfccae2ddc60b1713ea28dd7eb7 /indra/llcorehttp/_httpoprequest.cpp | |
parent | db2d6816b1a4e3b48d2e22cc2beb12ebff001079 (diff) | |
parent | fc06874061ad2b838c736874fd6cf5cdd25c789e (diff) |
merge changes for DRTVWR-282
Diffstat (limited to 'indra/llcorehttp/_httpoprequest.cpp')
-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 7db19b1841..51a8eaf998 100644 --- a/indra/llcorehttp/_httpoprequest.cpp +++ b/indra/llcorehttp/_httpoprequest.cpp @@ -580,8 +580,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; } |