nicolasff / webdis

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

Setting value with large base64 data #154

Open RomainWilbert opened 5 years ago

RomainWilbert commented 5 years ago

Hi Nicolas !

When I try to set a value using a POST method with string content body and a ~700KB base64 encoded message, server respond with following error

{
    "SET": [
        false,
        "ERR syntax error"
    ]
}

I guess this is because my content has some slahes in it...anyway I can set the value using the PUT method, but if I want to set an expiry time (/PUT/Key/EX/100) I get a syntax error as well. If I remove the /EX/100 value is set correctly.

Is it possibly to set the expiry time using PUT ?

Thanks