pdnscontrol icon indicating copy to clipboard operation
pdnscontrol copied to clipboard

404 error is not returning body as json

Open oborba opened this issue 8 years ago • 0 comments

When we do a post request with a invalid url like it: ("myapp.com/servers/localhost/zonessssss")

The return body is not a json, it is a plain text.

Possible cause : https://github.com/PowerDNS/pdnscontrol/blob/966347f85cf127b8c51bbe939fbf0b15c39b5d23/pdnscontrol/init.py#L90

oborba avatar May 09 '16 20:05 oborba