mirror of https://github.com/apache/cloudstack.git
Fix ISO upload on Deploy OVF task
This commit is contained in:
parent
745dd00c9a
commit
9c162c6de9
|
|
@ -427,6 +427,9 @@ public class VmwareContext {
|
|||
|
||||
conn.setChunkedStreamingMode(ChunkSize);
|
||||
conn.setRequestMethod(httpMethod);
|
||||
if (urlString.endsWith(".iso")) {
|
||||
conn.setRequestProperty("Overwrite", "t");
|
||||
}
|
||||
conn.setRequestProperty("Connection", "Keep-Alive");
|
||||
String contentType = urlString.endsWith(".iso") ?
|
||||
"application/octet-stream" :
|
||||
|
|
|
|||
Loading…
Reference in New Issue