[PATCH] Improve range support

Federico Schwindt fgsch at lodoss.net
Sun Dec 7 19:19:38 CET 2014


Someone at the SF summit mentioned this so here's a patch for handling not
satisfiable ranges (error code 416) and fixing some corner cases.
I took the liberty of renaming some variables to follow the spec more
I've also changed V1D_Deliver() to only add Accept-Ranges for 200
responses. I believe this makes more sense and it's what another web server
does but I'm fine either way.
Tests updated.

Comments? OKs?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20141207/685641ae/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Improve-Range-handling.patch
Type: text/x-patch
Size: 8198 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20141207/685641ae/attachment.bin>

More information about the varnish-dev mailing list