cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: Case-sensitivity on HTTP headers and CORS
Date Thu, 22 Dec 2011 13:32:54 GMT
See CXF-3998 instead.

On Thu, Dec 22, 2011 at 4:47 AM, Sergey Beryozkin <sberyozkin@gmail.com> wrote:
> Hi Benson
> On 22/12/11 02:41, Benson Margulies wrote:
>>
>>
>> http://dvcs.w3.org/hg/cors/raw-file/tip/Overview.html#author-request-headers
>> demands case-sensitive comparison.
>>
>> Chrome sends, e.g.:
>>
>>    Access-Control-Request-Headers: Content-Type
>>
>> Firefox sends, e.g.
>>
>>   Access-Control-Request-Headers: content-type
>>
>> Should we violate the spec and do a case-insensitive comparison?
>
>
> In JAX-RS the headers can be retrieved using a case-insensitive comparison,
> ex,
> @Header("content-type") String h
>
> needs to work with Content-Type.
>
> So perhaps we should do a case-insensitive comparison by default and add a
> filter property which can be used to enforce the case-sensitive comparison
>
> Cheers, Sergey

Mime
View raw message