weird line endings fix commit

viewer-2-initial-appearance
Teravus Ovares (Dan Olivares) 2010-10-09 12:07:58 -04:00
parent 5e381ec67c
commit 3454dfbcb3
1 changed files with 7 additions and 7 deletions

View File

@ -186,13 +186,13 @@ namespace OpenSim.Region.CoreModules.Avatar.ObjectCaps
// Range request
int start, end;
if (TryParseRange(range, out start, out end))
{
// Before clamping end make sure we can satisfy it in order to avoid
// sending back the last byte instead of an error status
if (end >= texture.Data.Length)
{
response.StatusCode = (int)System.Net.HttpStatusCode.RequestedRangeNotSatisfiable;
return;
{
// Before clamping end make sure we can satisfy it in order to avoid
// sending back the last byte instead of an error status
if (end >= texture.Data.Length)
{
response.StatusCode = (int)System.Net.HttpStatusCode.RequestedRangeNotSatisfiable;
return;
}
end = Utils.Clamp(end, 0, texture.Data.Length - 1);