Merge branch '2.6.x' into 2.7.x
This commit is contained in:
@@ -451,11 +451,6 @@ public class DockerApi {
|
||||
}
|
||||
}
|
||||
|
||||
String getCapturedDigest() {
|
||||
Assert.hasText(this.digest, "No digest found");
|
||||
return this.digest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -59,7 +59,8 @@ public class InspectedContent implements Content {
|
||||
FileCopyUtils.copy((byte[]) this.content, outputStream);
|
||||
}
|
||||
else if (this.content instanceof File) {
|
||||
FileCopyUtils.copy(new FileInputStream((File) this.content), outputStream);
|
||||
InputStream inputStream = new FileInputStream((File) this.content);
|
||||
FileCopyUtils.copy(inputStream, outputStream);
|
||||
}
|
||||
else {
|
||||
throw new IllegalStateException("Unknown content type");
|
||||
|
||||
Reference in New Issue
Block a user