nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.83k stars 304 forks source link

Trouble with .txt format on PING command #29

Closed SSPkrolik closed 13 years ago

SSPkrolik commented 13 years ago

Hi. I've got a little troube with txt format. Here are requests that I try to serve through webdis:

http://localhost:7379/PING - the default format is json (the same output will be if I put /PING.json) so the output is: {"PING":[true,"PONG"]}

But if I try to say http://localhost:7379/PING.txt - I've fot 400-Bad request. Everything is OK, for example when I do INFO command. For INFO .txt and .json both work nice.

nicolasff commented 13 years ago

Right, INFO returns a string, and PING returns a status. I'll change statuses to return a string starting either with + or -.

nicolasff commented 13 years ago

Fixed, thanks!