Skip to content

Commit

Permalink
Merge pull request #27 from akuckartz/master
Browse files Browse the repository at this point in the history
Add media type for JSON-LD
  • Loading branch information
martinblech committed Jan 14, 2015
2 parents 8bde060 + 81b1b4a commit 55cfe77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mimerender.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class MimeRenderException(Exception): pass

XML = 'xml'
JSON = 'json'
JSONLD = 'jsonld'
JSONP = 'jsonp'
BSON = 'bson'
YAML = 'yaml'
Expand All @@ -35,6 +36,7 @@ class MimeRenderException(Exception): pass
_MIME_TYPES = {
XML: ('application/xml', 'text/xml', 'application/x-xml',),
JSON: ('application/json',),
JSONLD: ('application/ld+json',),
JSONP: ('application/javascript',),
BSON: ('application/bson',),
YAML: ('application/x-yaml', 'text/yaml',),
Expand Down

0 comments on commit 55cfe77

Please sign in to comment.