Changed to use CocoaHTTPServer to support file streaming reliably