local_handler: Only send 417 when value invalid

This commit is contained in:
2024-02-07 15:37:53 +01:00
parent 75d36bb5bb
commit 6eaf5f5776

View File

@ -160,7 +160,7 @@ static int local_handler(client_ctx_t *ctx) {
} }
const char *client_expect = http_get_header_field(&req->hdr, "Expect"); 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); res->status = http_get_status(417);
return 0; return 0;
} }