Skip to content
Snippets Groups Projects
Commit c2ade1ab authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

v0.2

parent 1ae7139f
No related branches found
No related tags found
No related merge requests found
Pipeline #62425 failed with stages
in 43 seconds
...@@ -11,7 +11,7 @@ class MiniJSONRequest(JsonRequest): ...@@ -11,7 +11,7 @@ class MiniJSONRequest(JsonRequest):
Return JSON data, if content type is application/minijson it will be loaded Return JSON data, if content type is application/minijson it will be loaded
via minijson, else it will be loaded the normal way. via minijson, else it will be loaded the normal way.
""" """
if self.headers['Content-Type'] == 'application/minijson': if self.headers.get('Content-Type') == 'application/minijson':
return minijson.loads(self.get_data()) return minijson.loads(self.get_data())
else: else:
return super().get_json(force, silent, cache) return super().get_json(force, silent, cache)
......
# coding: utf-8 # coding: utf-8
[metadata] [metadata]
version = 0.1 version = 0.2
name = flask-minijson name = flask-minijson
long_description = file: README.md long_description = file: README.md
long_description_content_type = text/markdown; charset=UTF-8 long_description_content_type = text/markdown; charset=UTF-8
......
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