/** * Removes unsafe headers from the header set. */ private static void removeUnsafeHeaders(sRequest request) { // Host must be removed. String[] badHeaders = new[] { // No legitimate reason to over ride these. // TODO: We probably need to test variations as well. "Accept", "Accept-Encoding" }; foreach (String bad in badHeaders) { request.removeHeader(bad); } }