                     let truncatedData = data.subdataWithRange(dataRange);
                     
                     dataRequest.respondWithData(truncatedData);
-                    debugLog("pending data end offset: \(pendingDataEndOffset)");
-                    debugLog("requested: \(dataRequest.requestedOffset) + \(dataRequest.requestedLength)");
-                    debugLog("responding with end of data with length \(data.length - truncateDataLength)");
                     self.loadingRequest.finishLoading();
                     self.connection?.cancel();
                 }else {

        if loadRange {
            if let startOffset = startOffsetFromResponse(response) {
                loadedRange.location = startOffset;
                debugLog("offset requested: \(requestedRange.location), offset received: \(startOffset)");
            }
        }


                    
                    let responseData = data.subdataWithRange(dataRange);
                    dataRequest.respondWithData(responseData);
                    
                    if dataRequest.currentOffset >= dataRequest.requestedOffset + dataRequest.requestedLength {
                        self.loadingRequest.finishLoading();
