Fix dict iteration in CredentialsMessage::send_body