}
String resource = builder.toString();
- LOG.debug("requesting: {}", resource);
CloseableHttpResponse p_response = null;
try
StatusLine status = p_response.getStatusLine();
int code = status.getStatusCode();
- LOG.debug("response: {} - {}", code, status.getReasonPhrase());
+ LOG.info("{} - {}: {}", code, status.getReasonPhrase(), resource);
setCacheControl(computeCacheControl(p_response));
prepareResponse(response);
public ProxyHttpRequestHandler setOrigin(String origin)
{
- if (origin.endsWith("/"))
- this.origin = origin;
- else
- this.origin = origin + "/";
+ this.origin = origin;
return this;
}