Fixing the username that's checked for apikey auth
Changes to allow for compression