mirror of https://github.com/apache/jclouds.git
Merge pull request #485 from andrewgaul/simplify-java-url-http-command-executor-service-invoke
Simplify JavaUrlHttpCommandExecutorService.invoke
This commit is contained in:
commit
20bfcdf789
|
@ -135,8 +135,8 @@ public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorSe
|
||||||
headerBuilder.putAll(header, entry.getValue());
|
headerBuilder.putAll(header, entry.getValue());
|
||||||
}
|
}
|
||||||
ImmutableMultimap<String, String> headers = headerBuilder.build();
|
ImmutableMultimap<String, String> headers = headerBuilder.build();
|
||||||
Payload payload = in != null ? newInputStreamPayload(in) : null;
|
if (in != null) {
|
||||||
if (payload != null) {
|
Payload payload = newInputStreamPayload(in);
|
||||||
payload.getContentMetadata().setPropertiesFromHttpHeaders(headers);
|
payload.getContentMetadata().setPropertiesFromHttpHeaders(headers);
|
||||||
builder.payload(payload);
|
builder.payload(payload);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue