Use proper Content-Range headers (without the equal sign)
Use array.splice instead of array.filter