Commit 0cb56259 authored by Steafn Spettel's avatar Steafn Spettel Committed by Raphael Defosseux

fix(nrf): NRF does not send 100-continue anymore when body is too long

Signed-off-by: default avatarSteafn Spettel <stefan.spettel@eurecom.fr>
parent ce487326
...@@ -66,6 +66,9 @@ nrf_client::nrf_client(nrf_event& ev) : m_event_sub(ev) { ...@@ -66,6 +66,9 @@ nrf_client::nrf_client(nrf_event& ev) : m_event_sub(ev) {
headers = curl_slist_append(headers, "Accept: application/json"); headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Content-Type: application/json"); headers = curl_slist_append(headers, "Content-Type: application/json");
headers = curl_slist_append(headers, "charsets: utf-8"); headers = curl_slist_append(headers, "charsets: utf-8");
// to prevent curl from using the Expect: 100-continue feature, which is not
// supported by our servers
headers = curl_slist_append(headers, "Expect:");
// subscribe_task_curl(); // subscribe_task_curl();
} }
......
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