cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ugo Cei <...@apache.org>
Subject Re: Request headers
Date Mon, 26 Jul 2004 19:42:19 GMT
Il giorno 26/lug/04, alle 15:53, bernhard huber ha scritto:

>>     Ugo> Colin Paul Adams wrote:
>>>> <pattern name="xhtml">^.*application/xhtml\+xml.*$</pattern>
>>     Ugo> Wouldn't
>>     Ugo>   	<pattern name="xhtml">application/xhtml\+xml</pattern>
>>     Ugo> have the same effect? I think it should.
>> Yes - it does.
>>
> I was checking the header accept sent by mozilla, it says:
> accept =
> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/ 
> plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
>
> thus checking if application/xml is available you need some sort of RE,
> that's the reason for using plain HeaderSelector is a bit tedious.

Of course. But the regexp "application/xhtml\+xml" should match  
everything that  "^.*application/xhtml\+xml.*$" matches, unless  
something is escaping me. The former is simpler and has the same  
effect.

	Ugo

-- 
Ugo Cei - http://beblogging.com/

Mime
View raw message