aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llhttpclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llmessage/llhttpclient.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/linden/indra/llmessage/llhttpclient.cpp b/linden/indra/llmessage/llhttpclient.cpp
index 4e844c3..7144f13 100644
--- a/linden/indra/llmessage/llhttpclient.cpp
+++ b/linden/indra/llmessage/llhttpclient.cpp
@@ -2,6 +2,8 @@
2 * @file llhttpclient.cpp 2 * @file llhttpclient.cpp
3 * @brief Implementation of classes for making HTTP requests. 3 * @brief Implementation of classes for making HTTP requests.
4 * 4 *
5 * $LicenseInfo:firstyear=2006&license=viewergpl$
6 *
5 * Copyright (c) 2006-2007, Linden Research, Inc. 7 * Copyright (c) 2006-2007, Linden Research, Inc.
6 * 8 *
7 * Second Life Viewer Source Code 9 * Second Life Viewer Source Code
@@ -24,6 +26,7 @@
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO 26 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, 27 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE. 28 * COMPLETENESS OR PERFORMANCE.
29 * $/LicenseInfo$
27 */ 30 */
28 31
29#include "linden_common.h" 32#include "linden_common.h"
@@ -74,7 +77,7 @@ void LLHTTPClient::Responder::completedRaw(U32 status, const std::string& reason
74 LLBufferStream istr(channels, buffer.get()); 77 LLBufferStream istr(channels, buffer.get());
75 LLSD content; 78 LLSD content;
76 79
77 if (200 <= status && status < 300) 80 if (isGoodStatus(status))
78 { 81 {
79 LLSDSerialize::fromXML(content, istr); 82 LLSDSerialize::fromXML(content, istr);
80/* 83/*
@@ -93,7 +96,7 @@ void LLHTTPClient::Responder::completedRaw(U32 status, const std::string& reason
93// virtual 96// virtual
94void LLHTTPClient::Responder::completed(U32 status, const std::string& reason, const LLSD& content) 97void LLHTTPClient::Responder::completed(U32 status, const std::string& reason, const LLSD& content)
95{ 98{
96 if (200 <= status && status < 300) 99 if(isGoodStatus(status))
97 { 100 {
98 result(content); 101 result(content);
99 } 102 }