 
                     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 =


            if rangeRequest
                # short-circuit with a 416 if the range start is too big
                if requestStart? && requestStart > fend
                    headers =
                        "Content-Type":         "text/plain"

