Made httpauth optional