var minisrv_service_file = true;

var request_is_async = true;

var bf0app_update = false;
var request_path = request_headers.request_url.replace(service_name + ":/", "");
var romtype = session_data.get("wtv-client-rom-type");
var bootver = session_data.get("wtv-client-bootrom-version")

if ((romtype == "bf0app" || !romtype) && (bootver == "105" || !bootver)) {
	// assume old classic in flash mode, override user setting and send tellyscript
	// because it is required to proceed in flash mode
	bf0app_update = true;
	session_data.set("bf0app_update", bf0app_update);
}

if (!session_data.data_store.WTVFlashrom) {
	session_data.data_store.WTVFlashrom = new WTVFlashrom(minisrv_config, service_vaults, service_name, minisrv_config.services[service_name].use_zefie_server, bf0app_update);
}

session_data.data_store.WTVFlashrom.getFlashRom(request_path, function (data, headers) {
	sendToClient(socket, headers, data);
});
