void copyHeadersExceptEncoding(HttpRequest request, HttpURLConnection conn) {
        Map<String, List<String>> clientHeaders = request.getHeaders();
        if (clientHeaders != null) {
            for (String header : clientHeaders.keySet()) {
                if (header.equalsIgnoreCase("accept-encoding")) {
                    //Don't want to allow GZIP header
                    continue;
                }
                List<String> values = clientHeaders.get(header);
                for (String value : values) {
                    conn.addRequestProperty(header, value);
                }
            }
        }
    }