[AWS] Minor bug in src/core/aws-headers-set.adb

Pascal Obry pascal at obry.net
Sun Oct 9 17:08:45 CEST 2011


Riccardo,

This is now integrated with another little fix.

> where RFC2616_Token_Set is defined as follows
>
> ======= BEGIN
>      Printable_Set : constant Maps.Character_Set := Maps.To_Set
>         (Maps.Character_Range'(Low  =>  ' ',
>                                High =>  Character'Val (127)));

Above it should be 126 as in RFC2616 we have:

        CHAR           = <any US-ASCII character (octets 0 - 127)>
        CTL            = <any US-ASCII control character
                         (octets 0 - 31) and DEL (127)>
        token          = 1*<any CHAR except CTLs or separators>
        separators     = "(" | ")" | "<" | ">" | "@"
                       | "," | ";" | ":" | "\" | <">
                       | "/" | "[" | "]" | "?" | "="
                       | "{" | "}" | SP | HT

So since your Printable_Set is CHAR - CTL, 127 should be excluded.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B



More information about the AWS mailing list