oliyh / pedestal-api

Easily build APIs in Pedestal using Schema and Swagger
MIT License
110 stars 13 forks source link

negotiate-response causes error when error-response interceptor is used #15

Closed oliyh closed 8 years ago

oliyh commented 8 years ago

I think negotiate-response is enqueuing an interceptor after the error-response interceptor. Because error-response doesn't set a content type I think that the default serialiser is trying to encode a string and failing.

oliyh commented 8 years ago

It enqueues itself right at the end of the chain, but it should probably execute immediately.