Closed vdbergh closed 2 weeks ago
This can be done much cleaner, let me try a fix now that you inspired me how to actually get back the json and make the content type json conditionally.
The issue is not the content type but the fact that inheriting from base.mak
happens unconditionally.
Anyway I happy to see a better fix.
returning a new Response already escapes the renderer as per how pyramid works
returning a new Response already escapes the renderer as per how pyramid works
Ah ok! That's much better.
I will close this, waiting for your PR.
I had to sacrifice including
base.mak
since I do not know how to do it conditionally.