diff options
author | Diva Canto | 2014-05-08 11:18:17 -0700 |
---|---|---|
committer | Diva Canto | 2014-05-08 11:18:17 -0700 |
commit | a31393ba0becd593977fe85c79fb26746c42756e (patch) | |
tree | 0f8c6c5ff7d598200cc17651c587f337c5f78e57 /OpenSim | |
parent | Finished implementing redirects in GetTexture. (diff) | |
download | opensim-SC_OLD-a31393ba0becd593977fe85c79fb26746c42756e.zip opensim-SC_OLD-a31393ba0becd593977fe85c79fb26746c42756e.tar.gz opensim-SC_OLD-a31393ba0becd593977fe85c79fb26746c42756e.tar.bz2 opensim-SC_OLD-a31393ba0becd593977fe85c79fb26746c42756e.tar.xz |
Make the URL for texture redirects match the path of the resource that we use in OpenSim.
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs b/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs index 4dfa847..48d637c 100644 --- a/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs +++ b/OpenSim/Capabilities/Handlers/GetTexture/GetTextureHandler.cs | |||
@@ -153,7 +153,7 @@ namespace OpenSim.Capabilities.Handlers | |||
153 | } | 153 | } |
154 | else | 154 | else |
155 | { | 155 | { |
156 | string textureUrl = m_RedirectURL + textureID.ToString(); | 156 | string textureUrl = m_RedirectURL + "?texture_id="+ textureID.ToString(); |
157 | m_log.Debug("[GETTEXTURE]: Redirecting texture request to " + textureUrl); | 157 | m_log.Debug("[GETTEXTURE]: Redirecting texture request to " + textureUrl); |
158 | httpResponse.StatusCode = (int)OSHttpStatusCode.RedirectMovedPermanently; | 158 | httpResponse.StatusCode = (int)OSHttpStatusCode.RedirectMovedPermanently; |
159 | httpResponse.RedirectLocation = textureUrl; | 159 | httpResponse.RedirectLocation = textureUrl; |