Skip to content

Commit 51d1513

Browse files
authored
Merge pull request #258 from blackducksoftware/OffBy0x01-patch-1
Fix content-type in generate_sbom.py
2 parents ef90250 + 95d90d1 commit 51d1513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/client/generate_sbom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def download_report(bd_client, location, filename, retries=args.retries):
110110
}
111111
sbom_reports_url = version['_meta']['href'] + "/sbom-reports"
112112

113-
bd.session.headers["Content-Type"] = "application/vnd.blackducksoftware.report-4.json"
113+
bd.session.headers["Content-Type"] = "application/vnd.blackducksoftware.report-4+json"
114114
r = bd.session.post(sbom_reports_url, json=post_data)
115115
if (r.status_code == 403):
116116
logging.debug("Authorization Error - Please ensure the token you are using has write permissions!")

0 commit comments

Comments
 (0)