From 6eaf5f57763cb51184912a3a503fa954a9bf820a Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Wed, 7 Feb 2024 15:37:53 +0100 Subject: [PATCH] local_handler: Only send 417 when value invalid --- src/worker/local_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/worker/local_handler.c b/src/worker/local_handler.c index 5313a31..46b8cc9 100644 --- a/src/worker/local_handler.c +++ b/src/worker/local_handler.c @@ -160,7 +160,7 @@ static int local_handler(client_ctx_t *ctx) { } const char *client_expect = http_get_header_field(&req->hdr, "Expect"); - if (client_expect != NULL) { + if (client_expect != NULL && strcasecmp(client_expect, "100-continue") != 0) { res->status = http_get_status(417); return 0; }