Fix restapi.secret parsing.