aboutsummaryrefslogtreecommitdiff
path: root/examples/async/README.md
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-09-27 22:11:04 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2026-09-27 22:11:04 +0200
commit284551675d7596c6de9edbf488701395823e1d3c (patch)
treeac09ed3af128961d58d2ca3ed7aaacfef99919f3 /examples/async/README.md
parente8e9b1b129bc9a324e9df4a98d971505a2739a85 (diff)
downloadlibweb-284551675d7596c6de9edbf488701395823e1d3c.tar.gz
http.c: Do not return partial if no file is setHEADv0.6.0master
Whereas libweb does support returning partial transfers [1], it only does so limited to file transfers because it can be difficult or impossible to perform a partial request for what can be otherwise dynamically generated content. Previously, libweb naively accepted any range request from the client and silently replaced the response status to "206 Partial Content". [2] However, if no FILE * had been specified by the application, adjust_partial would treat this as a fatal error, because libweb assumed this as a programming error by the application. [1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Range_requests [2]: https://en.wikipedia.org/wiki/HTTP_status#2xx_success
Diffstat (limited to 'examples/async/README.md')
0 files changed, 0 insertions, 0 deletions