I think given a response for a resource that has a Content-type: application/json, when you make a PUT or POST to it, it would be nice if it assumed the content type was the same. Currently hyperresource sets the header as Content-type application/x-www-form-urlencoded.
I think given a response for a resource that has a
Content-type: application/json
, when you make a PUT or POST to it, it would be nice if it assumed the content type was the same. Currently hyperresource sets the header asContent-type application/x-www-form-urlencoded
.I worked around it by doing this: