mirror of https://github.com/apache/jclouds.git
Simplify JavaUrlHttpCommandExecutorService.invoke
This commit is contained in:
parent
cf3261e5e7
commit
f32b40b174
|
@ -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