mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-30 22:38:07 +00:00
RFC 9110 14.2 defines range handling only for GET, and a server must ignore a Range header on any other method. The server parsed it on every method, so a POST with a Range got a 206 slice of the handler's response, or a 416 when the Range was malformed. Range is now parsed only for GET and HEAD; other methods get the whole response, and a handler can still read the header itself.
1.0 MiB
1.0 MiB