wally: only issue new 'getheaders' after processing each header

Fix an annoying bug.