diff options
author | Latif Khalifa | 2010-10-09 18:22:21 +0200 |
---|---|---|
committer | Latif Khalifa | 2010-10-09 18:22:21 +0200 |
commit | 0dd4071156bc5def8bb8f6bb54051aa6198f1186 (patch) | |
tree | 05e20f3431d7c24819c7e7affb03ba3dbf293e62 /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-0dd4071156bc5def8bb8f6bb54051aa6198f1186.zip opensim-SC-0dd4071156bc5def8bb8f6bb54051aa6198f1186.tar.gz opensim-SC-0dd4071156bc5def8bb8f6bb54051aa6198f1186.tar.bz2 opensim-SC-0dd4071156bc5def8bb8f6bb54051aa6198f1186.tar.xz |
Fix a typo in previouis commit: start must not pass the end of the file
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Assets/GetTextureModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Assets/GetTextureModule.cs b/OpenSim/Region/CoreModules/Avatar/Assets/GetTextureModule.cs index 38151b1..97581e5 100644 --- a/OpenSim/Region/CoreModules/Avatar/Assets/GetTextureModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Assets/GetTextureModule.cs | |||
@@ -187,9 +187,9 @@ namespace OpenSim.Region.CoreModules.Avatar.ObjectCaps | |||
187 | int start, end; | 187 | int start, end; |
188 | if (TryParseRange(range, out start, out end)) | 188 | if (TryParseRange(range, out start, out end)) |
189 | { | 189 | { |
190 | // Before clamping end make sure we can satisfy it in order to avoid | 190 | // Before clamping start make sure we can satisfy it in order to avoid |
191 | // sending back the last byte instead of an error status | 191 | // sending back the last byte instead of an error status |
192 | if (end >= texture.Data.Length) | 192 | if (start >= texture.Data.Length) |
193 | { | 193 | { |
194 | response.StatusCode = (int)System.Net.HttpStatusCode.RequestedRangeNotSatisfiable; | 194 | response.StatusCode = (int)System.Net.HttpStatusCode.RequestedRangeNotSatisfiable; |
195 | return; | 195 | return; |