urbit/pkg
fang 34148f9f44 eyre: allow PUTting empty channel-request list
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.
2023-09-19 19:12:25 +03:00
..
arvo eyre: allow PUTting empty channel-request list 2023-09-19 19:12:25 +03:00
autoprop Merge pull request #6328 from urbit/autoprop-link 2023-03-16 08:46:20 -07:00
base-dev Merge pull request #6744 from urbit/develop 2023-07-28 16:32:35 +03:00
herb Revert "Revert "Merge naive/aggregator into poprox/naive-tests"" 2021-08-19 16:09:28 -07:00
interface dbug: support eyre eauth state & functionality 2023-05-18 23:40:16 +02:00
landscape Merge pull request #6744 from urbit/develop 2023-07-28 16:32:35 +03:00
symbolic-merge.sh pkg/symbolic-merge.sh from @Fang- 2021-08-30 20:19:16 +03:00