Skip to content

Commit b468d87

Browse files
committed
add check for non-exist object
1 parent a56c483 commit b468d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/internal/checksum/middleware_validate_output.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (m *validateOutputPayloadChecksum) HandleDeserialize(
9494

9595
// Skip validation if no checksum algorithm or checksum is available.
9696
if len(expectedChecksum) == 0 || len(algorithmToUse) == 0 {
97-
if response.Body != http.NoBody && m.LogValidationSkipped {
97+
if response.StatusCode != 404 && response.Body != http.NoBody && m.LogValidationSkipped {
9898
// TODO this probably should have more information about the
9999
// operation output that won't be validated.
100100
logger.Logf(logging.Warn,

0 commit comments

Comments
 (0)