From: Zoran V. <zv...@ar...> - 2005-10-04 11:21:56
|
Am 04.10.2005 um 09:37 schrieb Zoran Vasiljevic: > Hi, > > Vlad, you have made the ParseRange() call in the fastpath.c. > Can you help me understand the "Range:" header layout? > Is it something like: > > Range: bytes=a-b,c-d,e-f > or > Range: bytes=-a > > Or, can it only be: > > Range: bytes=a-b > or > Range: bytes=-a > > I have some trouble understanding this from the code. > Hm... after reading the code *again* (is ths true?) /* * Parse the "Range: bytes=" header. The header may contain zero * or more range_spec's separated by ',' like: * * bytes=[range_spec][,range_spec]... * * where range_spec could be one of: * first_byte_pos-last_byte_pos * -suffix_length * * The byte positions are inclusive; byte count starts at zero. */ Zoran |