aboutsummaryrefslogtreecommitdiff
path: root/restapi
diff options
context:
space:
mode:
authorJulien Dessaux2019-08-05 12:13:13 +0200
committerJulien Dessaux2019-08-05 13:28:55 +0200
commitbd13c5321221afd4454d1b6cc8b21b941e2bc5d8 (patch)
tree6ce8d93061d68463222401e6d26956c79c5433b1 /restapi
parentFixed lib curl hanging because of a post without payload (diff)
downloadrocket-cli-client-bd13c5321221afd4454d1b6cc8b21b941e2bc5d8.tar.gz
rocket-cli-client-bd13c5321221afd4454d1b6cc8b21b941e2bc5d8.tar.bz2
rocket-cli-client-bd13c5321221afd4454d1b6cc8b21b941e2bc5d8.zip
Get rid of the useless roundtrip of "Expect: 100-continue" when using a POST
Diffstat (limited to '')
-rw-r--r--restapi/auth.c1
1 files changed, 1 insertions, 0 deletions
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)