Skip to content

Commit bb258fe

Browse files
committed
fix(server): remove platform-dependent MIME type assertion for .log artifacts
Signed-off-by: nakatani-yo <yoshihito.nakatani@craftsman-software.com>
1 parent 6643df4 commit bb258fe

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

server/artifacts/artifact_server_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ func TestArtifactServer_GetArtifactFile(t *testing.T) {
492492
path: "/artifact-files/my-ns/workflows/my-wf/my-node-1/outputs/main-logs",
493493
statusCode: 200,
494494
isDirectory: false,
495-
contentType: "text/plain; charset=utf-8", // .log is not in the MIME db on all platforms → fallback
495+
// .log may resolve to "text/x-log" where the system MIME db has it,
496+
// or fall back to "text/plain" on minimal images. Either is fine;
497+
// the non-empty assertion below covers both cases.
496498
},
497499
}
498500

0 commit comments

Comments
 (0)