From bd13c5321221afd4454d1b6cc8b21b941e2bc5d8 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 5 Aug 2019 12:13:13 +0200 Subject: Get rid of the useless roundtrip of "Expect: 100-continue" when using a POST --- restapi/auth.c | 1 + 1 file changed, 1 insertion(+) (limited to 'restapi') diff --git a/restapi/auth.c b/restapi/auth.c index ad13798..dbe77d7 100644 --- a/restapi/auth.c +++ b/restapi/auth.c @@ -61,6 +61,7 @@ restapi_login(const char* username, const char* password) http_add_header("X-User-Id", userId->valuestring); http_add_header("X-Auth-Token", authToken->valuestring); http_add_header("Content-type", "application/json"); + http_add_header("Expect", ""); } else { const cJSON* msg = cJSON_GetObjectItemCaseSensitive(json, "message"); if (cJSON_IsString(msg) && msg->valuestring != NULL) -- cgit v1.2.3