From a00861b1691c37ed30ec16dd1bc84045f8d87dda Mon Sep 17 00:00:00 2001 From: Merov Linden Date: Wed, 2 Jul 2014 13:13:52 -0700 Subject: DD-21 : Fix the header on the SLM GET /listings route when using cap --- indra/newview/llmarketplacefunctions.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3