Covertness/coap-rs

Observe requests crash server if the client uses an empty vec![] to represent Observe: 0

jasta opened this issue · 0 comments

jasta commented

The CoAP spec (RFC 7252) allows for options using the uint type to be encoded as an empty vector for 0 but this crashes here:

(&Method::Get, Some(observe_option)) => match observe_option[0] {

coap-lite upstream has been upgraded to have proper handling for these types and we can fix the issue by simply upgrading to 0.8 (PR incoming)