A direct message request with max_bytes but no seq (starting sequence) fails with status message "408 Empty Request" instead of returning messages.
Proposed change
Default the seq to 1
Server version
Server v2.11.0-dev
Steps to reproduce
Create a new stream and publish 5 messages with payloads of 100 bytes. Post a DIRECT.GET with {"batch":5,"max_bytes":150} and one with {"batch":5,"max_bytes":150,"seq":1}
Observed behavior
A direct message request with
max_bytes
but noseq
(starting sequence) fails with status message "408 Empty Request" instead of returning messages.Proposed change
Default the
seq
to 1Server version
Server v2.11.0-dev
Steps to reproduce
Create a new stream and publish 5 messages with payloads of 100 bytes. Post a DIRECT.GET with
{"batch":5,"max_bytes":150}
and one with{"batch":5,"max_bytes":150,"seq":1}