PelionIoT / mbed-coap

CoAP C library - Builder and Parser for CoAP messages
Apache License 2.0
29 stars 16 forks source link

Copy block2 into request from sent_blockwise ptr #61

Closed kuggenhoffen closed 6 years ago

kuggenhoffen commented 6 years ago

When sending a request with block2 option, eg. indicating need for response to be blockwised, do not clear the block2 option when sending next request. This fixes an issue where previously the block2 was only sent for the first blockwise request and not for the subsequent ones, including the last request. This made the response not follow the request block2 option.