Skip to content
Snippets Groups Projects
Commit 81a9de3b authored by Cain, Payton David's avatar Cain, Payton David
Browse files

specify content type in metadata factory header

parent a9fdfa62
No related branches found
No related tags found
2 merge requests!146Release CMO metadata to production,!115Fix MetadataFactory header
......@@ -25,7 +25,11 @@ class MetadataFactory(object):
self.token = token
def _get_headers(self):
return {"Authorization": self.token} if self.token else None
return (
{"Authorization": self.token, "content-type": "application/json"}
if self.token
else None
)
def get_metadata(self, query: MetadataQuery) -> List[Metadata]:
if query.id:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment