Commit c0ed0c51 authored by Kishen Maloor's avatar Kishen Maloor

client_api:Fix invalid setting of Content-Format

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 4d6f878d
......@@ -134,9 +134,9 @@ prepare_coap_request(oc_client_cb_t *cb)
return false;
}
#ifndef OC_BLOCK_WISE
oc_rep_new(transaction->message->data + COAP_MAX_HEADER_SIZE, OC_BLOCK_SIZE);
#else /* !OC_BLOCK_WISE */
#ifdef OC_BLOCK_WISE
if (cb->method == OC_PUT || cb->method == OC_POST) {
request_buffer = oc_blockwise_alloc_request_buffer(
oc_string(cb->uri) + 1, oc_string_len(cb->uri) - 1, &cb->endpoint,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment