Merge "Software cli fails on upload --local command"

This commit is contained in:
Zuul 2024-06-14 18:51:51 +00:00 committed by Gerrit Code Review
commit dff1a7e5ac

View File

@ -363,7 +363,7 @@ class HTTPClient(httplib2.Http):
if 'content_type' in kwargs:
kargs['headers']['Content-Type'] = kwargs['content_type']
kargs['headers']['Accept'] = kwargs['content_type']
else:
elif 'Content-Type' not in kargs['headers']:
kargs['headers']['Content-Type'] = self.content_type
kargs['headers']['Accept'] = self.content_type