mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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.setChunkedStreamingMode(ChunkSize);
|
||||||
conn.setRequestMethod(httpMethod);
|
conn.setRequestMethod(httpMethod);
|
||||||
|
if (urlString.endsWith(".iso")) {
|
||||||
|
conn.setRequestProperty("Overwrite", "t");
|
||||||
|
}
|
||||||
conn.setRequestProperty("Connection", "Keep-Alive");
|
conn.setRequestProperty("Connection", "Keep-Alive");
|
||||||
String contentType = urlString.endsWith(".iso") ?
|
String contentType = urlString.endsWith(".iso") ?
|
||||||
"application/octet-stream" :
|
"application/octet-stream" :
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user