Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Content-Type "application/hal+json" #14

Open
armSeb opened this issue Sep 1, 2017 · 0 comments
Open

Handle Content-Type "application/hal+json" #14

armSeb opened this issue Sep 1, 2017 · 0 comments

Comments

@armSeb
Copy link

armSeb commented Sep 1, 2017

Hi,

By default the library handles only the "application/json" content-type. This causes the parser not working with several APIs which uses hal:

http://stateless.co/hal_specification.html

In my case, I just modified the init.py file:

if mime == 'application/json':

became:

if mime == 'application/json' or mime == 'application/hal+json':

Can you add the application/hal+json mine type ?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant