cvs commit: src/lib/libfetch http.c

Tim Kientzle kientzle at acm.org
Wed Feb 11 09:35:29 PST 2004


>des         2004/02/11 01:31:40 PST
>
>  FreeBSD src repository
>
>  Modified files:
>    lib/libfetch         http.c 
>  Log:
>  When restarting a transfer that has already completed, the server will
>  reply with a 416 error code (requested range not satisfiable) because
>  we ask it to start at the end of the file.  Handle this gracefully by
>  considering a 416 reply a success if the requested offset exactly
>  matches the length of the file and the requested length is zero.


Good work!  I've been bitten by this once or twice myself
but never dug far enough to figure it out.

Tim



More information about the cvs-src mailing list