mirror of https://github.com/apache/jclouds.git
Merge pull request #693 from dkoper/master
don't overwrite USER_AGENT if already there
This commit is contained in:
commit
222e2cc367
|
@ -215,7 +215,9 @@ public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorSe
|
|||
host += ":" + request.getEndpoint().getPort();
|
||||
}
|
||||
connection.setRequestProperty(HttpHeaders.HOST, host);
|
||||
if (connection.getRequestProperty(HttpHeaders.USER_AGENT) == null) {
|
||||
connection.setRequestProperty(HttpHeaders.USER_AGENT, USER_AGENT);
|
||||
}
|
||||
|
||||
if (request.getPayload() != null) {
|
||||
MutableContentMetadata md = request.getPayload().getContentMetadata();
|
||||
|
|
Loading…
Reference in New Issue