     }
 
 	func sendFile(remainingBytes remaining: Int, response: HTTPResponse, file: File, completion: @escaping (Bool) -> ()) {
-		if self.allowResponseFilters {
+		if self.shouldSkipSendfile(response: response) {
 			let thisRead = min(chunkedBufferSize, remaining)
 			do {
 				let bytes = try file.readSomeBytes(count: thisRead)


		guard file.exists else {
            return fnf(msg: "The file \(path) was not found.")
		}
		
		// can not use sendfile for SSL requests
		if let sslCon = request.connection as? NetTCPSSL {
			self.allowResponseFilters = sslCon.usingSSL
		}
		
        do {

        }
	}

	func shouldSkipSendfile(response: HTTPResponse) -> Bool {
		if self.allowResponseFilters {
			return true
		}
		// can not use sendfile for SSL requests
		if let sslCon = response.request.connection as? NetTCPSSL {
			return sslCon.usingSSL
		}
		return false
	}
	
	func sendFile(request: HTTPRequest, response: HTTPResponse, file: File) {

		response.addHeader(.acceptRanges, value: "bytes")
