mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
34148f9f44
Previously, we would reject this with a 400 error. Considering the request body is expected to contain "array of requests" and that arrays may be empty, we really should not be rejecting the requests. Prior to 156ca21472, sending the empty array would have been convenient for channel creation. Empty arrays getting rejected forced clients to inject a faux poke (commonly hi-ing oneself). With that recent change, the most common case for wanting to PUT the empty list of requests is largely obsolete, but one can still imagine it being useful for clients that want to keep their channel alive without necessarily being connected to it. This also implements sloppier clients from running into 400 responses when they submit an empty "command queue" for whatever. Regardless, there seems to be no clear reason why the empty request list _shouldn't_ be accepted and processed as normal. We add a small test to ensure eyre accepts this. |
||
---|---|---|
.. | ||
ames.hoon | ||
behn.hoon | ||
clay.hoon | ||
eyre.hoon | ||
gall.hoon | ||
iris.hoon | ||
khan.hoon |