And digging around in the source tree, it seems that
Cherokee simply doesn't implement support for the If-Range
header!  :)  After looking through handler_file.c some, my head
started to ache and my vision became blurred.  Needless to say,
I'm too stupid to add the support necessary for this header.

        I thought one approach might be to always reply with a
200 and the full file if the If-Range header is detected along
with a Range header.  But I cannot tell from the RFC if this is
acceptable behavior.  Either way, the approach was considered as
a hack to get things working.

        The second approach of course is to acknowledge the
presence of the If-Range header and then make the necessary check
of either the supplied etag or last-modified entity from the
client against the current etag or last-modified entity of the
requested file.  Again, my head was swimming at the notion of
actually modifying anything enough to make this happen.

        So, while I understand the problem (I think), I'm far too
limited in my coding knowledge to make it happen.  Hopefully it
is trivial for someone else to address!  :)

        I'll stop having this conversation with myself now until
someone else competent replies with the trivial five line patch
that adds this functionality!  At least, I hope that it is that
simple.

-- 
Mark Nipper                                                e-contacts:
832 Tanglewood Drive                                [EMAIL PROTECTED]
Bryan, Texas 77802-4013                     http://nipsy.bitgnome.net/
(979)575-3193                      AIM/Yahoo: texasnipsy ICQ: 66971617

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GG/IT d- s++:+ a- C++$ UBL++++$ P--->+++ L+++$ !E---
W++(--) N+ o K++ w(---) O++ M V(--) PS+++(+) PE(--)
Y+ PGP t+ 5 X R tv b+++@ DI+(++) D+ G e h r++ y+(**)
------END GEEK CODE BLOCK------

---begin random quote of the moment---
"I know the forces of spontaneous, emergent life are stronger
than the forces of evil, repression and death, and the forces of
death will destroy themselves."
 -- William S. Burroughs
----end random quote of the moment----
_______________________________________________
Cherokee mailing list
[email protected]
http://www.alobbs.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to