Made handling of MITM requests more configurable