 
                     return false
 
-                if requestStart && !requestEnd
+                if requestStart? && !requestEnd?
+                    rangeStart  = requestStart
                     rangeEnd    = fend
 
-                else if requestEnd && !requestStart
+                else if requestEnd? && !requestStart?
                     rangeStart  = fend - requestEnd
                     rangeEnd    = fend
 

                    rangeEnd    = requestEnd

                length = (rangeEnd - rangeStart) + 1

            # What is the actual length of content being sent back?
            console.debug "actual length is", length

            # send out headers
            headers =


                # Get the requested start and end
                # Force into integers
                requestStart    = if rangeVals[1]? then rangeVals[1] - 0 else undefined
                requestEnd      = if rangeVals[2]? then rangeVals[2] - 0 else undefined

                if requestStart && requestEnd && (requestStart > requestEnd)
                    res.writeHead 416, "Content-type":"text/html"
