Re: Configuring a custom UserManager

2010-12-09 Thread Niklas Gustavsson
Sorry for the late reply.

On Wed, Nov 17, 2010 at 6:19 PM, John Hartnup john.hart...@gmail.com wrote:
 SITE.java in 1.0.5 has a static COMMAND_MAP variable, intialised with the
 site command objects in a static block.
 Command command = (Command) COMMAND_MAP.get(siteRequest);

 The trunk instead uses :
 Command command = context.getCommandFactory().getCommand(siteRequest);

 I much prefer the latter, as it allows me to create new SITE commands and
 register them at configuration time.

Right, I was misunderstanding your question. I don't think there would
be any problem to port the change in 1.1.x to 1.0.6 if that would
help.

/niklas


when serializing an HttpRequest into byte stream Cookie: headers are replaced with Set-cookie. The fixing patch is attached

2010-12-09 Thread Сергей Григорьев
Hello All,

I have developed an HTTP proxy with Mina and detected that cookies from
browser are lost. This must be a typo error.
Index: DefaultHttpRequest.java
===
--- DefaultHttpRequest.java (revision 1043657)
+++ DefaultHttpRequest.java (working copy)
@@ -423,7 +423,7 @@
 
 buf.append(';');
 
-addHeader(HttpHeaderConstants.KEY_SET_COOKIE, buf.toString());
+addHeader(HttpHeaderConstants.KEY_COOKIE, buf.toString());
 }
 }