}
}
}
// cookies
BrowserCompatSpec browserCompatSpec = new BrowserCompatSpec();
List<org.apache.http.cookie.Cookie> cookies = new ArrayList<org.apache.http.cookie.Cookie>();
for (Cookie cookie : httpRequest.getCookies()) {
if (!cookie.getValues().isEmpty()) {
for (String value : cookie.getValues()) {
cookies.add(new BasicClientCookie(cookie.getName(), value));
}
} else {
cookies.add(new BasicClientCookie(cookie.getName(), ""));
}
}
if (cookies.size() > 0) {
for (org.apache.http.Header header : browserCompatSpec.formatCookies(cookies)) {
proxiedRequest.addHeader(header);
}
}
// body