pistache icon indicating copy to clipboard operation
pistache copied to clipboard

100 Continue

Open lightydo opened this issue 4 years ago • 0 comments

How should I handle "Expect: 100-continue" in my post handler? if I do this:

auto ct = req.headers().tryGet<Http::Header::Expect>();
       if (ct) {
           auto res = response.send(Http::Code::Continue);
       }

and later on

response.send(status_code, body, mime_type);

I get twice or even 3 times "100 CONTINUE" sent on my behalf followed by "200 OK"

Given the new maxResponseSize and maxRequestSize, it should be handled internally like libmicrohttpd does.

lightydo avatar Mar 05 '20 16:03 lightydo