siesta icon indicating copy to clipboard operation
siesta copied to clipboard

Handle Content-Type "application/hal+json"

Open armSeb opened this issue 8 years ago • 0 comments

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.

armSeb avatar Sep 01 '17 10:09 armSeb