Mirror all request header options in block1 POSTs
@@ -564,6 +564,8 @@ coap_receive(oc_message_t *msg)
if (oc_string_len(client_cb->query) > 0) {
coap_set_header_uri_query(response, oc_string(client_cb->query));
}
+ coap_set_header_accept(response, APPLICATION_VND_OCF_CBOR);
+ coap_set_header_content_format(response, APPLICATION_VND_OCF_CBOR);
request_buffer->mid = response_mid;
goto send_message;
}
@@ -619,6 +621,7 @@ coap_receive(oc_message_t *msg)
coap_udp_init_message(response, COAP_TYPE_CON, client_cb->method,
response_mid);
response_buffer->mid = response_mid;
+ coap_set_header_accept(response, APPLICATION_VND_OCF_CBOR);
coap_set_header_block2(response, block2_num + 1, 0, block2_size);
coap_set_header_uri_path(response, oc_string(client_cb->uri),
oc_string_len(client_cb->uri));
