if ("POST".equals(req.getMethod()) && req.getHeader("Content-Type") == null) {
req.addHeader("Content-Type", "application/x-www-form-urlencoded");
} else if ("1".equals(getParameter(request, MULTI_PART_FORM_POST, null))) {
// We need the entire header from the original request because it comes with a boundary value
// we need to reuse.
req.addHeader("Content-Type", request.getHeader("Content-Type"));
}
req.setIgnoreCache("1".equals(getParameter(request, Param.NO_CACHE.getKey(), null)));