tlet.tigris.org
Objet : Re: Content Negotiation for Safari 4. Any way to override?
Hello,
well, I'm afraid that I'm the author of the change...
Let's see with Jérôme if we keep the "equalsIgnorCase" test or not.
best regards,
Thierry Boileau
> Hello Bruno, Bruce,
>
Hello,
well, I'm afraid that I'm the author of the change...
Let's see with Jérôme if we keep the "equalsIgnorCase" test or not.
best regards,
Thierry Boileau
> Hello Bruno, Bruce,
>
> well that's weird, the current 2.0 release (in the svn repository) uses
> "equalsIgnoreCase" not "equals". And
Hello Bruno, Bruce,
well that's weird, the current 2.0 release (in the svn repository) uses
"equalsIgnoreCase" not "equals". And I was not aware this had changed.
best regards,
Thierry Boileau
> Hi Bruce/Thierry,
>
> It seems that the code has changed between version 1.1 and 2.0.
>
> In 1.1.5,
Hi Bruce/Thierry,
It seems that the code has changed between version 1.1 and 2.0.
In 1.1.5, com.noelios.restlet.application.TunnelFilter uses
'equalsIgnoreCase' (line 388), whereas in the trunk (2.0),
org.restlet.engine.application.TunnelFilter uses 'equals' (line 528).
I think it makes sense
Hi Thierry,
As Bruno said, the user agent is:
1. Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2. User-Agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-au)
AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/
Hi guys,
I have found that the agentName is reporting as Safari with a capitol S
whereas the standard file has it listed with a lowercase s, so I've needed
to add a separate rule in accept.properties. Because I want to only
override the default Accept that is being sent through (and so that I can
Hello Bruno,
could you try by removing the "acceptOld" line? It is not mandatory.
best regards,
Thierry Boileau
> Hi Thierry,
>
> I'm not entirely sure what the intended behaviour of the TunnelService
> (regarding user-agents) is. Could you confirm this should be as follow
> (assuming the user
Hi Thierry,
I'm not entirely sure what the intended behaviour of the TunnelService
(regarding user-agents) is. Could you confirm this should be as follow
(assuming the user agent tunnel is switched on in the service)?
Step 1. The TunnelService parses the 'User-Agent' header and compares it
to
Hi Bruce,
can you send us the content of the "user-agent" header? We will complete
the default "agent.properties" file.
best regards,
Thierry Boileau
> Hi guys,
>
> I'm setting up a restlet app at the moment, and I'd like to set it up so that
> if a user uses a browser to access a resource, he
Hello Bruce,
could you have a look at this page [1] of the user guide? And at the
javadocs of the tunnelService class [2], and ClientInfo class [3].
The solution is based on two properties files.
One (agent.properties), helps to match the user-agent string (sent by
the browser) and extract some
10 matches
Mail list logo