summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMerov Linden <merov@lindenlab.com>2014-07-02 13:13:52 -0700
committerMerov Linden <merov@lindenlab.com>2014-07-02 13:13:52 -0700
commita00861b1691c37ed30ec16dd1bc84045f8d87dda (patch)
tree91942d553342ad522af87151684888b45b6553ee
parentc890d32101f559ef4422b3af3a9aa4c14b429743 (diff)
DD-21 : Fix the header on the SLM GET /listings route when using cap
-rwxr-xr-xindra/newview/llmarketplacefunctions.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp
index d6a4d4062f..b37ae30021 100755
--- a/indra/newview/llmarketplacefunctions.cpp
+++ b/indra/newview/llmarketplacefunctions.cpp
@@ -1066,9 +1066,14 @@ void LLMarketplaceData::initializeSLM(const status_updated_signal_t::slot_type&
// Get/Post/Put requests to the SLM Server using the SLM API
void LLMarketplaceData::getSLMListings()
{
+ LLSD headers = LLSD::emptyMap();
+ headers["Accept"] = "application/json";
+ headers["Content-Type"] = "application/json";
+
+ // Send request
std::string url = getSLMConnectURL("/listings");
log_SLM_infos("LLHTTPClient::get", url, "");
- LLHTTPClient::get(url, new LLSLMGetListingsResponder(), LLSD());
+ LLHTTPClient::get(url, new LLSLMGetListingsResponder(), headers);
}
void LLMarketplaceData::getSLMListing(S32 listing_id)