yhirose / cpp-httplib

A C++ header-only HTTP/HTTPS server and client library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HttpServer Keep-Alive

ENMOJY opened this issue · comments

When I try to use http long connection, I set the timeout and maximum number to 10, the response received by my browser is still "Connection:close"

After I set the breakpoint, I found that "req.get_header_value("Connection") == "close"" is FALSE, but the return value of "req.get_header_value("Connection")" is " ". Why does "==" behave like this?

image