Skip to content

Commit b8dc761

Browse files
author
Glenn Snyder
committed
updating media type
1 parent eda1f0b commit b8dc761

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/print_vulnerability_affected_projects.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@
3838
custom_headers = {'Accept': 'application/vnd.blackducksoftware.project-detail-4+json'}
3939
project_details = hub.execute_get(project_url, custom_headers=custom_headers).json()
4040
if 'projectOwner' in project_details:
41-
custom_headers = {'Accept': 'application/vnd.blackducksoftware.user-1+json'}
41+
custom_headers = {'Accept': 'application/vnd.blackducksoftware.user-4+json'}
4242
owner_response = hub.execute_get(project_details['projectOwner'], custom_headers=custom_headers)
4343
owner_json = owner_response.json()
44+
4445
if 'firstName' in owner_json and 'lastName' in owner_json:
4546
owner_name = owner_json['firstName'] + ' ' + owner_json['lastName']
4647
else:

0 commit comments

Comments
 (0)