mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-25 12:14:41 +00:00
Update comment to clarify requirements for safe handling in ClientImpl::handle_request
This commit is contained in:
1 parent
b1bb2b7ecc
commit
1c3d35f83c
1 file changed
+1
-1
@@ -12731,7 +12731,7 @@ inline bool ClientImpl::handle_request(Stream &strm, Request &req,
|
|||||||
|
|
||||||
if (res.get_header_value("Connection") == "close" ||
|
if (res.get_header_value("Connection") == "close" ||
|
||||||
(res.version == "HTTP/1.0" && res.reason != "Connection established")) {
|
(res.version == "HTTP/1.0" && res.reason != "Connection established")) {
|
||||||
// TODO this requires a not-entirely-obvious chain of calls to be correct
|
// NOTE: this requires a not-entirely-obvious chain of calls to be correct
|
||||||
// for this to be safe.
|
// for this to be safe.
|
||||||
|
|
||||||
// This is safe to call because handle_request is only called by send_
|
// This is safe to call because handle_request is only called by send_
|
||||||
|
|||||||
Reference in new issue
Block a user