Refactor code structure for improved readability and maintainability; optimize performance in key functions.
This commit is contained in:
@@ -31,7 +31,7 @@ public sealed class SbomEndpointsTests
|
||||
var sbomJson = """
|
||||
{
|
||||
"bomFormat": "CycloneDX",
|
||||
"specVersion": "1.6",
|
||||
"specVersion": "1.7",
|
||||
"version": 1,
|
||||
"components": []
|
||||
}
|
||||
@@ -39,7 +39,7 @@ public sealed class SbomEndpointsTests
|
||||
|
||||
using var request = new HttpRequestMessage(HttpMethod.Post, $"/api/v1/scans/{scanId}/sbom")
|
||||
{
|
||||
Content = new StringContent(sbomJson, Encoding.UTF8, "application/vnd.cyclonedx+json")
|
||||
Content = new StringContent(sbomJson, Encoding.UTF8, "application/vnd.cyclonedx+json; version=1.7")
|
||||
};
|
||||
|
||||
var response = await client.SendAsync(request);
|
||||
|
||||
Reference in New Issue
Block a user