mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Append asset ID to URL for storage requests to allow caching proxies to work with Simian
This commit is contained in:
@@ -334,7 +334,9 @@ namespace OpenSim.Services.Connectors.SimianGrid
|
|||||||
// Make the remote storage request
|
// Make the remote storage request
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(m_serverUrl);
|
// Simian does not require the asset ID to be in the URL because it's in the post data.
|
||||||
|
// By appending it to the URL also, we allow caching proxies (squid) to invalidate asset URLs
|
||||||
|
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(m_serverUrl + asset.FullID.ToString());
|
||||||
|
|
||||||
HttpWebResponse response = MultipartForm.Post(request, postParameters);
|
HttpWebResponse response = MultipartForm.Post(request, postParameters);
|
||||||
using (Stream responseStream = response.GetResponseStream())
|
using (Stream responseStream = response.GetResponseStream())
|
||||||
|
|||||||
Reference in New Issue
Block a user