Use a case insensitive compare when looking for 'Upgrade'. The first client I tested was sending 'upgrade'.