diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp index 11648717adbd9f77d59e9d7c0e13b62beab1799c..f80d8a0e43adf9d9c3dc16e106111e26b5bfe1c7 100755 --- a/indra/llmessage/llhttpclient.cpp +++ b/indra/llmessage/llhttpclient.cpp @@ -565,6 +565,17 @@ void LLHTTPClient::put( request(url, LLURLRequest::HTTP_PUT, new LLSDInjector(body), responder, timeout, headers); } +void LLHTTPClient::putRaw( + const std::string& url, + const U8* data, + S32 size, + ResponderPtr responder, + const LLSD& headers, + const F32 timeout) +{ + request(url, LLURLRequest::HTTP_PUT, new RawInjector(data, size), responder, timeout, headers); +} + void LLHTTPClient::post( const std::string& url, const LLSD& body, diff --git a/indra/llmessage/llhttpclient.h b/indra/llmessage/llhttpclient.h index 5de257a4f69b70b2405822ae23f3a5ce5a091a52..39da9fcce3737801b4a527d9d802d2c17b5ef19a 100755 --- a/indra/llmessage/llhttpclient.h +++ b/indra/llmessage/llhttpclient.h @@ -79,6 +79,14 @@ public: ResponderPtr, const LLSD& headers = LLSD(), const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); + static void putRaw( + const std::string& url, + const U8* data, + S32 size, + ResponderPtr responder, + const LLSD& headers = LLSD(), + const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); + static void getHeaderOnly(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS, bool follow_redirects = true); static void getHeaderOnly(const std::string& url, ResponderPtr, const LLSD& headers, diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp index 64df5a83969bcc010846b2f038464a62c9acb8d7..2178ecaaa2e4b23f94597abf8e93959f865cc748 100755 --- a/indra/newview/llmarketplacefunctions.cpp +++ b/indra/newview/llmarketplacefunctions.cpp @@ -906,6 +906,7 @@ bool LLMarketplaceData::deleteListing(const LLUUID& folder_id) // Listing doesn't exist -> exit with error return false; } + // *TODO : Implement SLM API for deleting SLM records once it exists there... mMarketplaceItems.erase(folder_id); update_marketplace_category(folder_id); gInventory.notifyObservers();